Description Usage Arguments Value Examples
Generates a suitable colour vector for use with graphics::persp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | surfaceColors(z, ...)
## S3 method for class 'list'
surfaceColors(z, ...)
## S3 method for class 'matrix'
surfaceColors(
z,
pal = colorRampPalette(c("steel blue", "beige", "orange red")),
no = min(250, length(unique(z))),
col = fill,
fill = pal(no),
rgl = FALSE,
...
)
surfaceColours(z, ...)
|
z |
matrix or list structure to specify surface |
... |
additional arguments passed on to methods (currently not used) |
pal |
a palette function to use |
no |
the number of colours to use |
col, fill |
alternative names for the vector of colours |
rgl |
logical: should |
a suitable vector of colours
1 | cols <- surfaceColors(volcano, pal = pal_blue2red)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.