joey711 / phyloseq

phyloseq is a set of classes, wrappers, and tools (in R) to make it easier to import, store, and analyze phylogenetic sequencing data; and to reproducibly share that data and analysis with others. See the phyloseq front page:
http://joey711.github.io/phyloseq/
584 stars 187 forks source link

How to re-label measures in plot_richness? #1462

Open lyoon6 opened 3 years ago

lyoon6 commented 3 years ago

Hello,

I'm using the plot_richness function to create alpha diversity boxplots. How might I re-name the alpha diversity measures in the facets produced by the function? E.g., I want to re-title "Observed" to "Richness", "Shannon" to "Shannon Index", etc. Can I do this in ggplot with facets?

Thanks.

spholmes commented 3 years ago

If you type plot_richness without brackets you get the complete code of what the function does and you can make your own version making different facet headers for instance, see the ggplot2 Manuel Best Susan

On Mon, May 17, 2021, 16:40 lyoon6 @.***> wrote:

Hello,

I'm using the plot_richness function to create alpha diversity boxplots. How might I re-name the alpha diversity measures in the facets produced by the function? E.g., I want to re-title "Observed" to "Richness", "Shannon" to "Shannon Index", etc. Can I do this in ggplot with facets?

Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/joey711/phyloseq/issues/1462, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJFZPJEGPICKSVXYO7JQI3TOE2GPANCNFSM45AWXYCQ .