plotpersp_csvy_control: Create a Control List for 'plotpersp.csvy'

View source: R/csurvey.R

plotpersp_csvy_controlR Documentation

Create a Control List for plotpersp.csvy

Description

Constructs a list of control parameters for use with plotpersp.csvy. It extends the default settings from plotpersp_control with options specific to csvy plots.

Usage

plotpersp_csvy_control(surface = c("C", "U"), 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", ci = c("none", "lwr", "up", "both"), 
  cex = 1, categnm = NULL, type = c("response", "link"),
  cex.main = 0.8, box = TRUE, axes = TRUE, nticks = 5, palette = NULL, 
  NCOL = NULL, transpose = FALSE)

Arguments

surface

Plot the constrained ("C") or unconstrained ("U") fit.

x1nm, x2nm

Character strings naming the predictor variables for x and y axes.

categ

Optional character string naming a categorical covariate to stratify plots.

col

Color(s) for surfaces. Can be a palette or custom colors.

random

If TRUE, colors are assigned randomly.

ngrid

Number of grid points along each axis.

xlim, ylim, zlim

Optional limits for x, y, z axes.

xlab, ylab, zlab

Axis labels.

th, ltheta

Viewing and lighting angles for the plot.

main, sub

Plot title and subtitle.

ticktype

Type of ticks: "simple" or "detailed".

ci

Confidence interval display mode: "none", "lwr", "up", "both".

cex

Scaling factor for labels.

categnm

Labels for each level of the categorical covariate.

type

Scale of the surface: "response" (default) or "link".

cex.main

Scaling factor for main title text.

box, axes

Logical flags to show box and axes.

nticks

Number of tick marks along axes.

palette

Vector of colors for multi-surface plots.

NCOL

Number of columns in multi-panel layout.

transpose

Logical; if TRUE, transpose layout of multi-panel plots.

Value

A named list of graphical settings for use in plotpersp.csvy.

See Also

plotpersp.csvy, plotpersp_control, persp

Examples

ctrl <- plotpersp_csvy_control(col = "topo", ci = "both", transpose = TRUE)

csurvey documentation built on June 8, 2025, 12:41 p.m.