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/
567 stars 187 forks source link

Is it possible to label taxa (example: degraders and non-degraders) and then plot abundance? #1669

Open flsaravia opened 1 year ago

flsaravia commented 1 year ago

Hello, I am a new user to Phyloseq and was wondering if it is possible to label taxa and then plot abundance? I am thinking of a barplot or boxplot where y = abundance, x = taxa type (degrader/non-degrader) and each box represents the mean abundance of those taxa per group.

Thanks!

ycl6 commented 1 year ago

Hi @flsaravia The short anwser is you can take the data frame returned by psmelt and use ggplot2 to create your customised bar plot.