intensity.colors {Cardinal}R Documentation

Color palettes for imaging

Description

Create a vector of n continuous or discrete colors.

Usage

color.map(map = c("redblack", "greenblack", "blueblack", "parula",
    "darkrainbow", "rainbow", "grayscale", "jet", "hot", "cool"), n = 100)

intensity.colors(n = 100, alpha = 1)

jet.colors(n = 100, alpha = 1)

divergent.colors(n = 100, start = "#00AAEE",
    middle = "#FFFFFF", end = "#EE2200", alpha = 1)

risk.colors(n = 100, alpha = 1)

gradient.colors(n = 100, start = "#000000", end = "#00AAFF", alpha = 1)

bw.colors(n = 100, alpha = 1)

discrete.colors(n = 2, chroma = 150, luminance = 50, alpha = 1)

alpha.colors(col, n = 100, alpha.power = 2,
    alpha = (seq_len(n)/n)^alpha.power)

Arguments

map

the name of the colormap

n

the number of colors

alpha

a vector of alpha values between 0 and 1

start

the start color value

middle

the middle color value

end

the end color value

chroma

the chroma of the color

luminance

the luminance of the color

col

the color(s) to expand with transparency

alpha.power

how the alpha should ramp as it increases

Value

A palette of colors.

Author(s)

Kylie A. Bemis

Examples

col <- gradient.colors(100^2)
if ( interactive() ) {
	image(matrix(1:(100^2), nrow=100), col=col)
}

[Package Cardinal version 2.0.4 Index]