Can I do sampleAnnotation() to comp_barplot object as in comp_heatmap? #65
-
I would really like to annotate my sample group in my comp_barplot() object as colored bars below the axis, just like the online tutorial for comp_heatmap.( https://david-barnett.github.io/microViz/ just above "Example ordination plot workflow" section, the annotation part circled in red below) So I tried directly adding + samplrAnnotation() to my comp_barplot object and got an error as 'Can't add I guess sampleAnnotation() just doesn't work that way. But please, is there any way to do the annotation the way it can be easily done for comp_heatmap? I've noticed that the default order of the sample in comp_barplot is set by their “bray”-curtis dissimilarity, so it would help a lot if information about experiment group can be annotated on the plot at the same time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
here is a somewhat hacky way to do this for one sample variable
|
Beta Was this translation helpful? Give feedback.
here is a somewhat hacky way to do this for one sample variable