Open aiali0419 opened 6 years ago
Try
plot_bar(ps.top30, x="Sample", fill="Class")
+ facet_wrap(~tank, space="free", scales="free")
or
plot_bar(ps.top30, x="Sample", fill="Class")
+ facet_wrap("tank", space="free", scales="free")
(either should work).
I'm having issues ordering the bars in the plot_bar function. I've tried using levels, but it doesn't seem to change the location of the samples in the graph. I want the different treatments (denoted by tank in my variable table) to be clustered together, instead of how they are dispersed.
Here is the code that I am using: