microbiome / miaViz

Microbiome Analysis Plotting and Visualization
https://microbiome.github.io/miaViz
Artistic License 2.0
10 stars 12 forks source link

plotAbundanceDensity colors #107

Open antagomir opened 10 months ago

antagomir commented 10 months ago

The plotAbundanceDensity function currently allows coloring the points by a colData variable:

library(miaViz)
library(miaTime)
data("hitchip1006", package="miaTime")
tse <- hitchip1006
plotAbundanceDensity(tse)

Sometimes we need to map colors of the features (not points) to other external figures that use the same color coding for those features. For this it would be useful if we could also have a custom color for each visualized features (i.e. the rows in the above jitter plot). Something like:

plotAbundanceDensity(tse, assay.type = "relabundance", color_features_by=brewer.pal(n=nrow(tse)))

Sometimes it would be useful to color

antagomir commented 4 months ago

Related to #90

Daenarys8 commented 3 months ago

Also related: https://github.com/microbiome/OMA/issues/197