This function takes an OTU counts table as input returns a subsampled table. The default input is samples as rows (Margin=1), but samples can be set to columns by setting Margin to 2. The rarified table is a multinomial sample with probabilities set to observed counts witihn each sample. The depth is set by user, often is the min observed depth (i.e. min(rowSums(otu_table))).
1 | rarefy_table(x, depth = 1000, Margin = 1)
|
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.