Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plotFancy

Regression plots with predicted value lines, confidence intervals, color coded interactions


Description

This is the back-end for the functions plotSlopes and plotCurves. Don't use it directly.

Usage

plotFancy(newdf, olddf, plotx, modx, modxVals, interval, plotPoints,
  legendArgs, col = NULL, llwd = 2, opacity, ...)

Arguments

newdf

The new data frame with predictors and fit, lwr, upr variables

olddf

A data frame with variables(modxVar, plotxVar, depVar)

plotx

Character string for name of variable on horizontal axis

modx

Character string for name of moderator variable.

modxVals

Values of moderator for which lines are desired

interval

TRUE or FALSE: want confidence intervals?

plotPoints

TRUE or FALSE: want to see observed values in plot?

legendArgs

Set as "none" for no legend. Otherwise, a list of arguments for the legend function

col

requested color scheme for lines and points. One per value of modxVals.

llwd

requested line width, will re-cycle.

opacity

Value in 0, 255 for darkness of interval shading

...

Other arguments passed to plot function.

Value

col, lty, and lwd information

Author(s)

Paul E. Johnson <pauljohn@ku.edu>


rockchalk

Regression Estimation and Presentation

v1.8.144
GPL (>= 3.0)
Authors
Paul E. Johnson [aut, cre], Gabor Grothendieck [ctb]
Initial release
2019-03-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.