mapColor | R Documentation |
Produce color codes for plotting.
mapColor(x,
range.min = NA,
range.max = NA,
levels = NA,
nbreaks = 10,
colors = .encode.arg(c('orange', 'blue')),
...)
x |
A factor or a numeric vector. |
range.min |
Global minimum of x, including other nodes.
Default, |
range.max |
Global maximum of x, including other nodes.
Default, |
levels |
Encoded value of a character vector indicating the global
levels of x, when x is a factor. Default, |
nbreaks |
An integer indicating the number of intervals into which x is
to be cut, less than |
colors |
Encoded value of a vector of colors to interpolate, must be a
valid argument to col2rgb(). Default, |
... |
arguments to pass to |
Color codes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.