| gg_added_var | R Documentation | 
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)
gg_added_var(partial, extended, se = TRUE)
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  | 
a ggplot2 graph that can be extended via other ggplot2 arguments
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.