Constructs a list of control parameters to customize the appearance of perspective plots created by plotpersp.cgam
.
plotpersp_control(surface = "mu", x1nm = NULL, x2nm = NULL, categ = NULL,
col = NULL, random = FALSE, ngrid = 12, xlim = NULL, ylim = NULL, zlim = NULL,
xlab = NULL, ylab = NULL, zlab = NULL, th = NULL, ltheta = NULL,
main = NULL, sub = NULL, ticktype = "simple")
A named list of control settings for use with plotpersp
.
Character string indicating the surface type to plot. Options are "mu"
for fitted means or "eta"
for systematic component.
Optional character strings specifying names of the predictors for the x axis.
Optional character strings specifying names of the predictors for the y axis.
Optional character string naming a categorical covariate in the cgam
fit to stratify surfaces. Default is NULL
.
Colors used for the surface(s). If NULL
, defaults are applied automatically depending on the number of surfaces.
Logical; if TRUE
, colors are randomized for multiple surfaces. Default is FALSE
.
Integer; number of grid points along each axis. Default is 12
.
Optional numeric vectors of length 2 specifying limits for the x, y, and z axes.
Axis labels for x, y, and z axes. Default is based on the predictor names and surface type.
Angle defining the azimuthal direction for viewing the plot (theta).
Angle defining the direction of lighting (light theta).
Main title of the plot.
Subtitle of the plot.
Character string indicating type of tick marks: "simple"
(default) or "detailed"
.
Mary C. Meyer and Xiyue Liao
plotpersp
, persp
ctrl <- plotpersp_control(col = "topo", ngrid = 20, th = 45)
# Then used inside plotpersp:
# plotpersp(fit, control = ctrl)
Run the code above in your browser using DataLab