plot_var_stability | R Documentation |
Produces a ggplot2 plot of stability (as SEM) of variable importance across models trained and tested across outer CV folds. Overlays frequency with which variables are selected across the outer folds and optionally overlays directionality for binary response outcome.
plot_var_stability(
x,
final = TRUE,
top = NULL,
direction = 0,
dir_labels = NULL,
breaks = NULL,
percent = TRUE,
level = 1,
sort = TRUE
)
x |
a |
final |
Logical whether to restrict variables to only those which ended up in the final fitted model or to include all variables selected across all outer folds. |
top |
Limits number of variables plotted. Set to |
direction |
Integer controlling plotting of directionality for binary or
regression models. |
dir_labels |
Character vector for controlling the legend when
|
breaks |
Vector of continuous breaks for legend colour/size |
percent |
Logical for |
level |
For multinomial |
sort |
Logical whether to sort by mean variable importance. Passed to
|
A ggplot2 plot
var_stability()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.