drapecol: draping colors over a persp plot

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/drapecol.R

Description

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

Usage

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

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.

Value

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

Note

This function is inspired by a similar function in package fields, unfortunately made unavailable in most recent version of fields

Author(s)

Karline Soetaert <karline.soetaert@nioz.nl>

See Also

persp

Examples

1
2
3
4
persp(volcano, theta = 135, phi = 30, col = drapecol(volcano),
      main = "drapecol")
persp(volcano, theta = 135, phi = 30, col = drapecol(volcano),
      border = NA, main = "drapecol")

Example output



shape documentation built on May 19, 2021, 9:09 a.m.

Related to drapecol in shape...