ggAVplot: Generates a single Added Variable plot

Description Usage Arguments Examples

View source: R/ggAVplot.R

Description

Generates a single Added Variable plot

Usage

1
ggAVplot(model, variable, data = NULL, ...)

Arguments

model

An input model created by lm, glm, or any model that supports 'formula()' and 'update()' functions.

variable

The variable to create the Added Variable Plot on.

data

A data frame that will be used for making the graph. This is useful for adding labels, color encodings, etc for other aspects of the graph the user wants to add.

...

Further arguments to be passed to the whole plot 'aes()' function.

Examples

1
2
3
model = lm( log(mpg) ~ disp + hp + drat + wt, data = mtcars)
ggAVplot(model, 'hp')
ggAVplot(model, 'hp', data=mtcars, color=cyl ) # add to plot-wide aesthetics list

dereksonderegger/ggAVplots documentation built on Feb. 27, 2021, 3:44 a.m.