intensity.colors {Cardinal} | R Documentation |
Create a vector of n
continuous or discrete colors.
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)
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 |
A palette of colors.
Kylie A. Bemis
col <- gradient.colors(100^2) if ( interactive() ) { image(matrix(1:(100^2), nrow=100), col=col) }