cm.colorsx: Returns a color vector moving from cyan to magenta via white.

Description Usage Arguments Examples

View source: R/cm.colorsx.R

Description

Returns a color vector moving from cyan to magenta via white.

Usage

1
2
cm.colorsx(x, v = 1, start = 0, end = 1, clamp = NULL,
  breakpoint = 0.5, 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 breakpoint between 0 and 1 where the color vector turns at white.

flip

is true if the color scale should be reversed.

alpha

is the transparency.

...

variables passed on from other functions.

Examples

1
2
3
4
5
6
7
## Not run: 
x=runif(1000)
pp(1,2)
plot(x, pch=".", cex=30, col=cm.colorsx(x))
plot(x, pch=".", cex=30, col=cm.colorsx(x,flip=TRUE))

## End(Not run)

arnejohannesholmin/cpplot3d documentation built on March 19, 2018, 9:15 a.m.