Perfect, thanks for the info @MartinLubell!
The easiest way to manually order the taxa bar plots is to add an new Metadata Column to your metadata file, and specify your sort order there. For example, say I have samples s1
, s2
, s3
, and s4
, but wanted to view them in the following order: s3
, s1
, s4
, s2
, I could make a sample metadata file that looks like this:
#SampleID CustomSort ... other metadata columns ...
s1 2
s2 4
s3 1
s4 3
Then, use this metadata file when running taxa barplot
. In the viz, add a sort rule based on that metadata column. This approach has the advantage of being reusable across visualizations and methods.
A real-world example using the Moving Pictures Tutorial.
Reordering the first few samples. Original sort: L1S8
, L1S57
, L1S76
, L1S105
. New sort: L1S57
, L1S8
, L1S105
, L1S76
.
I didn't put in CustomSort
values for any of the other samples, so I did a secondary order by the original sample id.
Hope that helps, and keep us posted with any questions!