cafferychen777 / ggpicrust2

Make Picrust2 Output Analysis and Visualization Easier
https://cafferychen777.github.io/ggpicrust2/
Other
91 stars 11 forks source link

Is this package compatible with other ggplot functions? #110

Open chung-wingko opened 1 week ago

chung-wingko commented 1 week ago

Thank you so much for this package -- it's been really helpful for visualisations!

This is not a big issue, but I'm trying to adjust the visualisations (colours, text size, etc) and not sure whether these functions are compatible with the usual ggplot functions?

For example, this works great: pathway_pca(abundance = metacyc_abundance %>% column_to_rownames("pathway"), metadata = metadata, group = "Plot")

But when I try to adjust with custom colours, nothing changes.

plot_colors <- c("#DD5129", "#FAB255", "#0F7BA2", "#43B284", "#4c2f61") pca_picrust <- pathway_pca(abundance = metacyc_abundance %>% column_to_rownames("pathway"), metadata = metadata, group = "Plot") pca_picrust + scale_color_manual(values = plot_colors)