Open bhagesh-h opened 3 years ago
There are a few things you can try, such as output to a file (png, pdf, etc) and change the width/height/resolution of the output file, or consider using family or class instead. With that many genera, it is impossible for readers to differentiate one genus from another anyway.
Hi, below is the complete code I used to plot OTU abundance
library("phyloseq")
library("ggplot2")
otu <- read.csv("dfAbundance_16S.csv", sep=",", row.names=1)
tax <- read.csv("dfClassification_16S.csv", sep=",", row.names=1)
OTU = otu_table(as.matrix(otu), taxa_are_rows = TRUE)
TAX = tax_table(as.matrix(tax))
physeq = phyloseq(OTU, TAX)
plot_bar(physeq, fill = "Genus")
which gives me this plot:
please let me know if there's a fix for this to view the complete image.
Thank you.