topo.colorsx: Returns a color vector of topographic colors.

View source: R/topo.colorsx.R

topo.colorsxR Documentation

Returns a color vector of topographic colors.

Description

Returns a color vector of topographic colors.

Usage

topo.colorsx(
  x,
  v = 1,
  start = 0,
  end = 1,
  clamp = NULL,
  breakpoint = c(1/3, 2/3),
  flip = FALSE,
  alpha = 1,
  ...
)

Arguments

x

is a numeric object to which rainbow colors combined with lightening and darkening should be matched.

v

is the value (lightness) of the colors.

start

and 'end' are the start and end colors, given as values in [0,1].

breakpoint

is the vector of two breakpoints between 0 and 1 where the color vector turns from blue to green and from green to yellow.

flip

is true if the color scale should be reversed.

alpha

is the transparency.

...

methods passed on to sub-functions (not used, but allowing for unused arguments).

Examples

## Not run: 
x=runif(1000)
pp(1,2)
plot(x,pch=".",cex=30,col=topo.colorsx(x))
plot(x,pch=".",cex=30,col=topo.colorsx(x,flip=TRUE))

## End(Not run)


arnejohannesholmin/cpplot3d documentation built on April 14, 2024, 11:36 p.m.