plot.pclm2D: Generic Plot for pclm2D Class

View source: R/pclm_graphics.R

plot.pclm2DR Documentation

Generic Plot for pclm2D Class

Description

The generic plot for a pclm2D object is constructed using persp method.

Usage

## S3 method for class 'pclm2D'
plot(
  x,
  type = c("fitted", "observed"),
  colors = c("#b6e3db", "#e5d9c2", "#b5ba61", "#725428"),
  nbcol = 25,
  xlab = "x",
  ylab = "y",
  zlab = "values",
  phi = 30,
  theta = 210,
  border = "grey50",
  ticktype = "simple",
  ...
)

Arguments

x

an object of class pclm2D.

type

chart type. Defines which data are plotted, "fitted" values or "observed" input data. Default: "fitted".

colors

colors to interpolate; must be a valid argument to col2rgb().

nbcol

dimension of the color palette. Number of colors. Default: 25.

xlab, ylab, zlab

titles for the axes. N.B. These must be character strings; expressions are not accepted. Numbers will be coerced to character strings.

theta, phi

angles defining the viewing direction. theta gives the azimuthal direction and phi the colatitude.

border

the color of the line drawn around the surface facets. The default, NULL, corresponds to par("fg"). A value of NA will disable the drawing of borders: this is sometimes useful when the surface is shaded.

ticktype

character: "simple" draws just an arrow parallel to the axis to indicate direction of increase; "detailed" draws normal ticks as per 2D plots.

...

any other argument to be passed to persp.

See Also

pclm2D

Examples

# See complete examples in pclm2D help page

ungroup documentation built on May 29, 2024, 11:55 a.m.