Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plotAbundanceDensity colors #107

Open
antagomir opened this issue Jan 2, 2024 · 2 comments
Open

plotAbundanceDensity colors #107

antagomir opened this issue Jan 2, 2024 · 2 comments

Comments

@antagomir
Copy link
Member

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

@Insaynoah Insaynoah self-assigned this Apr 25, 2024
@antagomir
Copy link
Member Author

Related to #90

@Daenarys8
Copy link
Contributor

Also related: microbiome/OMA#197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants