gglm | R Documentation |
Provides four standard visual model diagnostic plots with 'ggplot2'.
gglm(data, theme = ggplot2::theme_gray(), ...)
data |
A model object of type 'lm' or 'glm'. |
theme |
The theme of the 'ggplot's to be produced. |
... |
Currently ignored. For extendability. |
A a 'ggplot2' object for visual diagnostic of model validity.
data(mtcars)
m1 <- lm(mpg ~ cyl + disp + hp, data = mtcars)
gglm(m1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.