plot_variable_importance: plot_variable_importance

View source: R/rf_plot_functions.R

plot_variable_importanceR Documentation

plot_variable_importance

Description

Plot the variable importance from a random forest model. Mean Decrease Gini for Classification and

Usage

plot_variable_importance(rf_list, color = "Class", n_metabolites = 10)

Arguments

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.

Examples

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)

omu documentation built on Oct. 17, 2023, 1:06 a.m.