I am trying to plot several variable in one boxplot for my paper but the box plots are overlapping and I couldn't find any solution for this problem.
here is my code:
<- ggplot (MetaNotOne.art1)+
<-geom_boxplot(aes(x=TISSUE,y=simpson.art1), width=0.5, position = "dodge") +
<- geom_boxplot(aes(x=TISSUE,y=shannon), width=0.5, position = "dodge")+
<- facet_wrap(~SOIL)+
<- xlab("Organ type")+ylab("Diversity")+ scale_x_discrete(labels = c("Twig", "Leaf","Root"))
but it doesn't work and box plots of different variables are plotted on top of each other.
I read all the relevant pages in stack overflow and other websites, but nothing worked.
I also tried adding another layer of boxplot using another data frame which did not work...
could anyone please help me with this?