| response_curves | R Documentation |
Line chart of variable response curves
response_curves( model, x_min = NULL, x_max = NULL, y_min = NULL, y_max = NULL, interval = NULL, trans_only = FALSE, colors = color_palette(), plotly = TRUE, verbose = FALSE, table = FALSE, add_intercept = FALSE, points = FALSE )
model |
Model object |
x_min |
number specifying horizontal axis min |
x_max |
number specifying horizontal axis max |
y_min |
number specifying vertical axis min |
y_max |
number specifying vertical axis max |
interval |
number specifying interval between points of the curve |
trans_only |
a boolean specifying whether to display non-linear only |
colors |
character vector of colors in hexadecimal notation |
plotly |
A boolean to specify whether to include use ggplot over plotly |
verbose |
A boolean to specify whether to print warnings |
table |
A boolean to specify whether to return a |
add_intercept |
A boolean to specify whether to include the intercept whne calculating the curves |
points |
A boolean to specify whether to include the points from the data on the curve |
Line chart of variable response curves visualising the relationship of each independent variable with the dependent variable
a plotly line chart of the model's response curves
model = run_model(data = mtcars,dv = 'mpg',ivs = c('disp'))
model %>%
response_curves()
model = run_model(data = mtcars,dv = 'mpg',ivs = c('wt','cyl','disp'))
model %>%
response_curves()
run_model(data = scale(mtcars) %>%
data.frame(),
dv = 'mpg',
ivs = c('wt','cyl','disp')) %>%
response_curves()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.