gg_added_var: Create an Added Variable Plot

View source: R/av_plots.R

gg_added_varR Documentation

Create an Added Variable Plot

Description

Adapted from Steven Pollack https://github.com/stevenpollack/stat151a/blob/master/From_Lab/Feb-26-2014.R (combines his data manipulation and graphing of av plots and removes formatting (can be added back in or adjusted as needed)

Usage

gg_added_var(partial, extended, se = TRUE)

Arguments

partial

the model containing only the output and the variable for which you wish to graph the av plot

extended

the full model from which you are drawing the partial variable

se

whether to graph the standard error around the regression line

Value

a ggplot2 graph that can be extended via other ggplot2 arguments


McCartneyAC/mccrr documentation built on March 24, 2024, 5:12 p.m.