auto_variable_contributions {autostats}R Documentation

Plot Variable Contributions

Description

Return a variable importance plot and coefficient plot from a linear model. Used to easily visualize the contributions of explanatory variables in a supervised model

Usage

auto_variable_contributions(data, formula, scale = TRUE)

Arguments

data

dataframe

formula

formula

scale

logical. If FALSE puts coefficients on original scale

Value

a ggplot object

Examples


iris %>%
framecleaner::create_dummies() %>%
auto_variable_contributions(
 tidy_formula(., target = Petal.Width)
 )

iris %>%
auto_variable_contributions(
tidy_formula(., target = Species)
)

[Package autostats version 0.4.0 Index]