ggmoddiag: Plot model diagnostics in a grid, with inputs.

Description Usage Arguments Details Examples

View source: R/ggmoddiag.r

Description

Plot model diagnostics in a grid, with inputs.

Usage

1
2
ggmoddiag(model, toplot = "points", which = c(1:3, 5), mfrow = c(1, 1),
  returnwhat = "plots", ...)

Arguments

model

A model object, can be from lm() or glm() call I think.

data

The data that was used in the model.

tplot

Plot points or text labels.

which

Which plots to print out.

mfrow

Number of rows and columns of output.

...

Passed on to somewhere...

Details

Modified from http://librestats.com/2012/06/11/autoplot-graphical-methods-with-ggplot2/

Examples

1
2
3
4
library(ggplot2)
data(mtcars)
mod <- lm(mpg ~ qsec, data=mtcars)
ggmoddiag(mod, which=1:6, mfrow=c(3,2))

sckott/sacbox documentation built on May 26, 2017, 3:47 a.m.