pcpPlot: A PCP plot of the data, residuals or hat values from...

Description Usage Arguments Value Examples

View source: R/appPlots.R

Description

A PCP plot of the data, residuals or hat values from regression fits

Usage

1
2
pcpPlot(data, fit, type = "Variables", npcpCols = 4, resDiff = F,
  absResid = F, sequential = F, selnum = NULL)

Arguments

data

a data frame

fit

a lm for the data frame

type

one of "Variables", "Residuals", "Hatvalues"

npcpCols

number of colours

resDiff

difference residuals, TRUE or FALSE

absResid

absolute residuals, TRUE or FALSE

sequential

use sequential fits (TRUE) or drop1 fits (FALSE)

selnum

row numbers of cases to be highlighted

Value

ggplot

Examples

1
2
f <- lm(mpg ~ wt+hp+disp, data=mtcars)
pcpPlot(mtcars, f, type="Residuals")

cbhurley/ERSA documentation built on July 30, 2018, 12:04 p.m.