Description Usage Arguments Value Examples
Convert the OTU table (+ metadata) to a format that can be easily plotted with phyloseq
| 1 2 | 
| physeq | Phyloseq object | 
| include_sample_data | Include  | 
| sample_col_keep | Which columns in the  | 
| include_tax_table | Include  | 
| tax_col_keep | A vector for column names to keep.
Use  | 
| control_expr | An expression for identifying which samples are controls. Control/non-control identification will be in the 'IS_CONTROL' column of the returned data.frame object. | 
data.frame
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | data(physeq_S2D1)
# Including some columns from sample metadata
df_OTU = phyloseq2table(physeq_S2D1,
                        include_sample_data=TRUE,
                        sample_col_keep=c('Buoyant_density', 'Substrate', 'Day'))
head(df_OTU)
## Not run: 
# Including some columns from sample metadata & taxonomy
df_OTU = phyloseq2table(physeq_S2D1,
                        include_sample_data=TRUE,
                        sample_col_keep=c('Buoyant_density', 'Substrate', 'Day'),
                        include_tax_table=TRUE)
head(df_OTU)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.