Learn R Programming

shape (version 1.4.6.1)

drapecol: draping colors over a persp plot

Description

generates color(s) that will appear on the surface facets of a "persp" plot.

Usage

drapecol(A, col = femmecol(100), NAcol = "white", lim = NULL)

Value

a vector of character strings giving the colors in hexadecimal format, one for each surface facet.

Arguments

A

matrix with input grid.

col

color palette.

NAcol

color of NA elements.

lim

The limits of the data; if NULL, the data range will be chosen.

Author

Karline Soetaert <karline.soetaert@nioz.nl>

See Also

Examples

Run this code
persp(volcano, theta = 135, phi = 30, col = drapecol(volcano),
      main = "drapecol")
persp(volcano, theta = 135, phi = 30, col = drapecol(volcano),
      border = NA, main = "drapecol")

Run the code above in your browser using DataLab