plot_relationships: Plot relationships between variables in a model

Description Usage Arguments Examples

Description

Loops through independent variables within a model and plots their relationship with the dependent variable

Usage

1
2
3
plot_relationships(model, orig_df, cont_range = c(-4, 4),
  binary_range = c(0, 1), binary_colour = "#66c2a5",
  cont_colour = "#3288bd")

Arguments

model

Fitted model

Examples

1
2
3
data(diamonds)
model1 <- lm(price ~ carat + cut*color, data=diamonds)
plot_relationships(model1)

flaneuse/llamar documentation built on May 16, 2019, 1:18 p.m.