powered by
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)
The output from the random_forest function
Metabolite metadata to color by
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)
Run the code above in your browser using DataLab