Description Usage Arguments Details Value Author(s)
View source: R/CustomColormaps.R
A set of functions that to define various attractive color scales
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | red.green(levels = 100, space = "rgb", thru = "black", ...)
yellow.blue(levels = 100, space = "rgb", ...)
grayscale(levels = 100, space = "rgb", ...)
jet(levels = 100, space = "rgb", ...)
purple.orange(levels = 100, space = "rgb", ...)
aqua.brown(levels = 100, space = "rgb", ...)
purple.green(levels = 100, space = "rgb", ...)
hot(levels = 100, space = "rgb", ...)
hot2(levels = 100, space = "rgb", ...)
orange.blue(levels = 100, space = "rgb", thru = "black", ...)
|
levels |
Integer, number of levels in the color map |
space |
a character string; interpolation in RGB or CIE Lab color spaces. |
thru |
A color, either named or as |
... |
arguments to pass to |
Many of these functions (orange.blue, yellow.blue,
red.green, purple.orange, aqua.brown and
purple.green) interpolate between three colors, where the function
name contains the start and stop colors, and the "thru" argument is used to
define a midpoint (typically black or white). Many of these were defined to
accomodate people with color blindness.
Colormap functions that do not follow this convention are:
grayscale maps shades of grey from black to white.
hot mimics black-body radiation, passing from black to white through red, orange and yellow (like iron being heated up).
hot2 is similar to hot, but has a more subdued shard of red as the first value after black. This is useful for de-emphasizing single data points in a heatmap of a 2D-histogram.
jet interpolates from dark blue to dark red through shades of royal blue, cyan, green, yellow and orange.
A character vector with elements of 7 or 9 characters, "#" followed by the red, blue, green and optionally alpha values in hexadecimal (after rescaling to 0 ... 255). The optional alpha values range from 0 (fully transparent) to 255 (opaque).
M.W.Rowe, mwr.stats@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.