I try to put the axis of depth on the scale, but after multiple attempts I can't.
Here is the code allowing me to generate the graph:
MOZ_Echt <- subset_samples(MOZ, corebis == "CSF_04" | corebis == "MTB_03" | corebis == "MTB_05" | corebis == "CSF_19")
plot_bar(MOZ_Echt,fill="Domain",x="depth")+xlab("Depth (cm)")+scale_y_continuous(labels = scales::percent)+ facet_wrap(~corebis, scales = "free_x", ncol=2) + geom_bar(stat="identity", position="stack") + coord_flip() + scale_x_discrete(limits=c("878", "818", "718", "696", "646", "618", "596", "518", "418", "396", "346", "318", "296", "246", "218", "196", "131", "118", "18","13.5","8.5","5","3","1.5","0.5"))
In addition, I would like if possible to put MTBO3 and CSF04 on the same graph also for MTB05 and CSF19.
Can you help me ?
Thank you