drapecol {shape} | R Documentation |
generates color(s) that will appear on the surface facets of "persp" plot
inspired by similar function in package fields,
unfortunately made unavailable in most recent version of fields
drapecol(A, col=femmecol(100), NAcol="white")
A |
matrix with input grid |
col |
color palette |
NAcol |
color of 'NA' elements |
a vector of character strings giving the colors in hexadecimal format, one for each surface facet
Karline Soetaert <k.soetaert@nioo.knaw.nl>
persp(volcano,theta = 135, phi = 30, col = drapecol(volcano),main="drapecol") persp(volcano,theta = 135, phi = 30, col = drapecol(volcano),border=NA, main="drapecol")