View source: R/plot.barp_table.r
plot.barp_table | R Documentation |
Plots 4 barplots in one page using a barp_table object as input
## S3 method for class 'barp_table'
plot(
x,
main = "dada2sum",
pal2table,
oma1 = 12,
ncol.leg = ceiling(nrow(x$table)/5),
x.leg = -ncol(x$table) * 1.5,
y.leg = -0.5,
pt.cex = 2.5,
x.int = 1
)
x |
Object of class barp_table |
main |
One of 'vsearchsum' or 'dada2sum' or a vector with 4 elements which are the titles the plots |
pal2table |
Object of class pal2table for matching colors to Taxa |
oma1 |
Space on lower margin to allocate legend (passed to graphical parameter oma) |
ncol.leg |
Number of columns of legend |
x.leg |
X value for upper left corner of legend |
y.leg |
Y value for upper left corner of legend |
pt.cex |
Size of symbol in legend |
x.int |
Value passed to x.intersp (see ?legend ) |
This function takes a table created by barp.table and creates 4 barplots whith absolute and relative number of reads and absolute and relative number of OTUs/ASV per Taxon
A graph with 4 barplots
Pedro Martinez Arbizu
plot.barp_table
bp1 <- barp.table(meio[,9:27],meio$Group,sum)
colmeio <- pal2table( c(rownames(bp1$table),'Branchiopoda','Calanoida','Cyclopoida','Harpacticoida','Isopoda','Misophrioida','Ostracoda','Siphonostomatoida','Tanaidacea','Tantulocarida'),pal='c25bro2')
plot(bp1,pal2table=colmeio)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.