tax_prop | R Documentation |
Calculates the proportion of taxonomic categories across samples of a community data object.
tax_prop(
com,
taxon,
var = NULL,
n = length(levels(com$tax[, taxon])),
fun = sum,
omit_unclassified = T,
term = "unclassified"
)
com |
a community data object. |
taxon |
name of the taxonomic level to calculate proportions. Must be a column name in table 'tax'. |
var |
a factor to pool samples. Must be a column name in table 'env'. Optional. |
fun |
function to use for pooling taxonomic data. Default is sum. |
omit_unclassified |
omit unclassified taxa from the column sorting. Unclassified taxa are placed at the end. |
term |
if omit_unclassified = T, the term defining unclassified taxa. |
A data frame with proportions of taxa across samples.
tax_prop()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.