plotpersp_control | R Documentation |
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")
surface |
Character string indicating the surface type to plot. Options are |
x1nm |
Optional character strings specifying names of the predictors for the x axis. |
x2nm |
Optional character strings specifying names of the predictors for the y axis. |
categ |
Optional character string naming a categorical covariate in the |
col |
Colors used for the surface(s). If |
random |
Logical; if |
ngrid |
Integer; number of grid points along each axis. Default is |
xlim , ylim , zlim |
Optional numeric vectors of length 2 specifying limits for the x, y, and z axes. |
xlab , ylab , zlab |
Axis labels for x, y, and z axes. Default is based on the predictor names and surface type. |
th |
Angle defining the azimuthal direction for viewing the plot (theta). |
ltheta |
Angle defining the direction of lighting (light theta). |
main |
Main title of the plot. |
sub |
Subtitle of the plot. |
ticktype |
Character string indicating type of tick marks: |
A named list of control settings for use with plotpersp
.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.