GG_plot_models | R Documentation |
Expects output from broom::tidy()
on a list of models. Most conveniently from get_model_coefs()
or compare_predictors
.
GG_plot_models(model_coefs, exclude = "(Intercept)", highlight_sig = NULL)
model_coefs |
A data frame with model coefficients |
exclude |
A string to exclude from the plot. Default is "(Intercept)" |
highlight_sig |
Highlight variables with p values below this threshold. Default is NULL, which means no highlighting. |
A ggplot2 object
#compare the coefficients of two models
iris_model_coefs = compare_predictors(iris, names(iris)[1], names(iris)[-1])
GG_plot_models(iris_model_coefs)
GG_plot_models(iris_model_coefs, highlight_sig = .05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.