Plot variable importance
# S3 method for variable_importance plot(x, caption = "model", title = NULL, font_size = 11, point_size = 3, print = TRUE, ...)
x | A data frame from |
---|---|
caption | Either "model", "none", or a string to be used as the plot caption. "model" puts the name of the best-performing model, on which variable importances are generated, in the caption. |
title | Plot title |
font_size | Relative size for all fonts, default = 11 |
point_size | Size of dots, default = 3 |
Print the plot? |
|
... | Unused |
A ggplot object, invisibly.
machine_learn(pima_diabetes[1:50, ], patient_id, outcome = diabetes, tune = FALSE) %>% get_variable_importance() %>% plot()#>#>#>#>#>#> #>#>