Learn R Programming

cgam (version 1.27)

plotpersp_control: Control Parameters for plotpersp.cgam

Description

Constructs a list of control parameters to customize the appearance of perspective plots created by plotpersp.cgam.

Usage

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")

Value

A named list of control settings for use with plotpersp.

Arguments

surface

Character string indicating the surface type to plot. Options are "mu" for fitted means or "eta" for systematic component.

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 cgam fit to stratify surfaces. Default is NULL.

col

Colors used for the surface(s). If NULL, defaults are applied automatically depending on the number of surfaces.

random

Logical; if TRUE, colors are randomized for multiple surfaces. Default is FALSE.

ngrid

Integer; number of grid points along each axis. Default is 12.

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: "simple" (default) or "detailed".

Author

Mary C. Meyer and Xiyue Liao

See Also

plotpersp, persp

Examples

Run this code
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