make_regression_graph | R Documentation |
Make a graph of coefficient values and 95 percent confidence interval for regression.
make_regression_graph(model, coefficients = NULL)
model |
A 'lm' object made from making a model using 'lm()'. |
coefficients |
A string or vector of strings with the coefficient names. Will then make the graph only with those coefficients. |
Outputs a 'ggplot2' graph
make_regression_graph(model = lm(mpg ~ cyl + disp + hp + drat, data = mtcars)) make_regression_graph(model = lm(mpg ~ cyl + disp + hp + drat, data = mtcars), coefficients = c("cyl", "disp")) make_regression_graph(model = lm(mpg ~ cyl + disp, data = mtcars))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.