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=0.5, RAM.theme=RAM.color())
# 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=0.5, RAM.theme=NULL,
col.pal=col)
# 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=0.5,
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=0.5, RAM.theme=NULL,
col.pal=col,main="", file="path/to/filename.pdf",
ext="pdf", height=8, width=16)Run the code above in your browser using DataLab