KasperSkytte / ampvis2

Tools for visualising microbial community amplicon data
https://kasperskytte.github.io/ampvis2/
GNU General Public License v3.0
67 stars 23 forks source link

amp_boxplot order genera by corresponding phyla #161

Closed uschuette closed 1 year ago

uschuette commented 1 year ago

Is there a way in amp_boxplot to order e.g. the genera by corresponding phyla? We found a longer way to do this by extracting the taxa names from amp_heatmap and specifying them as rownames and then using _order_y = levels(fct_rev(as.factor(rownames(ampdf))) in amp_boxplot, but maybe there is a faster way?

Thank you for your help!! Ursel

KasperSkytte commented 1 year ago

No, the only way is to order the factor yourself. Also see #162 and #163. Highly recommend updating ampvis2.