barp.table | R Documentation |
Creates a table that can be used for a barplot graph
barp.table(x, by, fun, ...)
x |
The community table with Taxon reads counts |
by |
Aggregating vector of classes |
fun |
Function used to aggregate. Default is sum. |
This is a wrapper function to 'aggregate' and 'apply'. It takes a Taxon table (OTU or ASV table) and counts the number of reads aggregating by the vector specified by 'by' using function specified with 'fun'
An object of class barp_table A matrix with Taxa and aggregate values. The object has plot method, which will produce barplots For absolute and relative number of reads and absolute and relative number of OTUs/ASV per Taxon
Pedro Martinez Arbizu
plot.barp_table
bp1 <- barp.table(deepMeio[,9:27],deepMeio$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.