data(ITS1, ITS2, meta)
taxa <- c("Fusarium", "Alternaria", "Cladosporium")
group.Taxa.bar(data=list(ITS1=ITS1, ITS2=ITS2), is.OTU=TRUE,
rank="g", taxa=taxa, meta=meta,
meta.factor="City", cex.y=5, cex.x=5,
bar.width=1, RAM.theme=RAM.color())
## Not run:
# # change default color schemes
# col <- c("dodgerblue1", "darkcyan")
# taxa.1 <- c("Fusarium", "Alternaria", "Cladosporium",
# "Verticillium", "Kondoa")
# group.Taxa.bar(data=list(ITS1=ITS1, ITS2=ITS2), is.OTU=TRUE,
# rank="g", taxa=taxa.1, meta=meta,
# meta.factor="City", cex.y=5, cex.x=5,
# bar.width=1, RAM.theme=NULL, col.pal=col)
# group.Taxa.bar(data=list(ITS1=ITS1, ITS2=ITS2), is.OTU=TRUE,
# rank="g", taxa=taxa.1, meta=meta,
# meta.factor="City", cex.y=5, cex.x=5,
# bar.width=1, RAM.theme=NULL,
# col.pal=col, func="mean")
# # change ggplot theme
# group.Taxa.bar(data=list(ITS1=ITS1, ITS2=ITS2), is.OTU=TRUE,
# rank="g", taxa=taxa.1, meta=meta,
# meta.factor="City", cex.y=5, cex.x=5,
# bar.width=1, col.pal=col, RAM.theme=RAM.border())
# # save the plot
# group.Taxa.bar(data=list(ITS1=ITS1, ITS2=ITS2), is.OTU=TRUE,
# rank="g", taxa=taxa.1, meta=meta,
# meta.factor="City", cex.y=5, cex.x=5,
# bar.width=1, RAM.theme=NULL,
# col.pal=col,main="", file="path/to/filename.pdf",
# ext="pdf", height=8, width=16)
# ## End(Not run)
Run the code above in your browser using DataLab