fade.colorsx: Returns a color vector interpolated between the colors...

View source: R/fade.colorsx.R

fade.colorsxR Documentation

Returns a color vector interpolated between the colors specified by 'start' and 'end', possitbly fading via white of black.

Description

Returns a color vector interpolated between the colors specified by 'start' and 'end', possitbly fading via white of black.

Usage

fade.colorsx(
  x,
  start = "red",
  end = "violet",
  breakpoint = 0.5,
  bias = 1,
  space = c("rgb", "Lab"),
  interpolate = c("linear", "spline", "fadewhite", "fadeblack"),
  flip = FALSE,
  ...
)

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.

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.

...

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

alpha

is the transparency.

Examples

## Not run: 
x=runif(300)
pp(1,2)
plot(x, pch=".", cex=30, col=fade.colorsx(x, start="orange", end="green"))
plot(x, pch=".", cex=30, col=fade.colorsx(x, start="orange", end="green", flip=TRUE))

## End(Not run)


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