drapecol | R Documentation |
generates color(s) that will appear on the surface facets of a "persp" plot.
drapecol(A, col = femmecol(100), NAcol = "white", lim = NULL)
A |
matrix with input grid. |
col |
color palette. |
NAcol |
color of |
lim |
The limits of the data; if |
a vector of character strings giving the colors in hexadecimal format, one for each surface facet.
This function is inspired by a similar function in package fields
,
unfortunately made unavailable in most recent version of fields
Karline Soetaert <karline.soetaert@nioz.nl>
persp
persp(volcano, theta = 135, phi = 30, col = drapecol(volcano),
main = "drapecol")
persp(volcano, theta = 135, phi = 30, col = drapecol(volcano),
border = NA, main = "drapecol")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.