plot.interpret | R Documentation |
Plot regularized model coefficients
## S3 method for class 'interpret' plot( x, include_intercept = FALSE, max_char = 40, title, caption, font_size = 11, point_size = 3, print = TRUE, ... )
x |
A |
include_intercept |
If FALSE (default) the intercept estimate will not be plotted |
max_char |
Maximum length of variable names to leave untruncated.
Default = 40; use |
title |
Plot title. NULL for no title; character for custom title. If left blank contains the model class and outcome variable |
caption |
Plot caption, appears in lower-right. NULL for no caption;
character for custom caption. If left blank the caption will contain info
including the hyperparameter values of the model used by
|
font_size |
Relative size of all fonts in plot, default = 11 |
point_size |
Size of dots, default = 3 |
print |
Print the plot? Default = TRUE |
... |
Unused |
A ggplot object, invisibly.
interpret
machine_learn(mtcars, outcome = mpg, models = "glm", tune = FALSE) %>% interpret() %>% plot(font_size = 14)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.