View source: R/rf_plot_functions.R
plot_variable_importance | R Documentation |
Plot the variable importance from a random forest model. Mean Decrease Gini for Classification and
plot_variable_importance(rf_list, color = "Class", n_metabolites = 10)
rf_list |
The output from the random_forest function |
color |
Metabolite metadata to color by |
n_metabolites |
The number of metabolites to include. Metabolites are sorted by decreasing importance. |
rf_list <- random_forest(c57_nos2KO_mouse_countDF,c57_nos2KO_mouse_metadata,
Treatment ~.,c(60,40),500)
plot_variable_importance(rf_list = rf_list, color = "Class", n_metabolites = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.