| plot_variable_importance | R Documentation |
Creates a horizontal bar chart of variable importance from a fitted earth model.
plot_variable_importance(earth_result, type = "nsubsets")
earth_result |
An object of class |
type |
Character. Importance metric to plot: |
A ggplot2::ggplot object.
result <- fit_earth(mtcars, "mpg", c("cyl", "disp", "hp", "wt"))
plot_variable_importance(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.