plotFancyCategories: Draw display for discrete predictor in plotSlopes

View source: R/plotSlopes.R

plotFancyCategoriesR Documentation

Draw display for discrete predictor in plotSlopes

Description

There's plotFancy for numeric predictor. This is for discrete

Usage

plotFancyCategories(
  newdf,
  olddf,
  plotx,
  modx = NULL,
  modxVals,
  xlab,
  xlim,
  ylab,
  ylim,
  col = c("black", "blue", "darkgreen", "red", "orange", "purple", "green3"),
  opacity = 120,
  main,
  space = c(0, 1),
  width = 0.2,
  llwd = 1,
  offset = 0,
  ...,
  gridArgs = list(lwd = 0.3, lty = 5),
  legendArgs
)

Arguments

newdf

The new data object, possibly from predictOMatic

olddf

The model data matrix

plotx

Name of horizontal axis variable

modx

Name of moderator

modxVals

values for modx

xlab

X axis label

xlim

x axis limits. Don't bother setting this, the internal numbering is too complicated.

ylab

y axis label

ylim

y axis limits

col

color pallet for values of moderator variable

opacity

Value in 0, 255 for darkness of interval shading

main

main title

space

same as space in barplot, vector c(0, 1) is c(space_between, space_before_first)

width

width of shaded bar area, default is 0.2. Maximum is 1.

llwd

requested line width, will re-cycle.

offset

Shifts display to right (not tested)

...

Arguments sent to par

gridArgs

A list of values to control printing of reference grid. Set as "none" if no grid is desired.

legendArgs

Arguments to the legend function. Set as "none" if no legend is needed. Otherwise, provide a list

Value

None

Author(s)

Paul Johnson pauljohn@ku.edu


rockchalk documentation built on Aug. 6, 2022, 5:05 p.m.