surfaceColors: Surface colours for perspective plots

Description Usage Arguments Value Examples

View source: R/objects.R

Description

Generates a suitable colour vector for use with graphics::persp

Usage

 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, ...)

Arguments

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 rgl protocols be used rather than persp?

Value

a suitable vector of colours

Examples

1

BillVenables/WWRGraphics documentation built on Feb. 1, 2021, 12:13 p.m.