GG_plot_models: Plot model coefficients for comparison

GG_plot_modelsR Documentation

Plot model coefficients for comparison

Description

Expects output from broom::tidy() on a list of models. Most conveniently from get_model_coefs() or compare_predictors.

Usage

GG_plot_models(model_coefs, exclude = "(Intercept)")

Arguments

model_coefs

A data frame with model coefficients

exclude

A string to exclude from the plot. Default is "(Intercept)"

Value

A ggplot2 object

Examples

#compare the coefficients of two models
iris_model_coefs = compare_predictors(iris, names(iris)[1], names(iris)[-1])
GG_plot_models(iris_model_coefs)

Deleetdk/kirkegaard documentation built on May 2, 2024, 7:12 p.m.