Entering edit mode
Hi,
I want to add annotation color to a normal ggplots2 figure (barplot) like it is used for example in pheatmap.
pheatmap(assay(ntd)[select,], cluster_rows=FALSE, show_rownames=FALSE, cluster_cols=FALSE, annotation_col=df)
For a pheatmap I add a df for annoation_col.
How can I do it for other figures?
Thanks for your help, best Dagmar
I have a bar plot with 150 samples of different groups. Some of them are negative. If I color the bars I do not see the difference between the groups, that's why I wanted to add the annotation like it is used in pheatmap. Just to show that all groups are represented equally