Description Usage Arguments Examples
Loops through independent variables within a model and plots their relationship with the dependent variable
1 2 3 | plot_relationships(model, orig_df, cont_range = c(-4, 4),
binary_range = c(0, 1), binary_colour = "#66c2a5",
cont_colour = "#3288bd")
|
model |
Fitted model |
1 2 3 | data(diamonds)
model1 <- lm(price ~ carat + cut*color, data=diamonds)
plot_relationships(model1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.