Description Usage Arguments Details See Also Examples
View source: R/plot-diag-lm-glm.R
ggplot is used to plot a specific diagnostic graphic. The choices are:
residuals plot, leverage mesuare plot, Cook's distance plot and z variable
plot (link function plot). See Details for more information.
1 2 |
x |
a tibble of class |
type |
a string specifying the graphic to be plotted. The available choices are 'residuals' (default), 'leverage', 'cook' and 'link'. |
... |
futher arguments. |
The graph created will depend on the class of the model object and
choice of the type argument. For diag_lm class, the option
"residuals" creates a residuals vs fitted values plot, the option
"cook" creates a Cook's distance vs index plot, and the option
"leverage" plots a leverage vs index plot.
For more information about the measures used to create the plots, see the
diag_data function documentation.
Other glm diagnostic functions: diag_data,
plot.diag_glm
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.