greyx: Returns a color vector of heat colors.

Description Usage Arguments Examples

View source: R/greyx.R

Description

Returns a color vector of heat colors.

Usage

1
2
greyx(x, s = 0, start = 0, end = 1, clamp = NULL, flip = FALSE,
  alpha = 1, ...)

Arguments

x

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

start

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

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

h

is the value hue at the end point of the heat color vector, defaulted to 1/6 to move from red to yellow.

v

is the value (lightness) of the colors.

Examples

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

## End(Not run)

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