View source: R/random_forest_plot.R
random_forest_plot | R Documentation |
Plots the importance of otu on predicting/classifying the sample_group and the accuracy using core otu, non-core otu and all otu.
random_forest_plot( otu, sample, mini_abun, threshold, sample_name, sample_group )
otu |
a community count data matrix with samples in rows and OTUs/taxa in column, |
sample |
a sample information data.frame. The rownames must match the sample names in the otu, |
mini_abun |
a value indicating whether the otu is present, |
threshold |
a value indicating the final percent increase in beta-diversity, |
sample_name |
the name of a column that containing the sample name, |
sample_group |
the name of a column that containing the sample type/group, |
Plots the importance of otu on predicting/classifying the sample_group and the accuracy using core otu, non-core otu and all otu.
A bar plot showing importance of otu on predicting/classifying the sample_group and a bar plot showing the accuracy using core otu, non-core otu and all otu.
random_forest_plot(otu, sample, mini_abun=0, threshold=0.02, sample_name, sample_group)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.