Description Usage Arguments Value Author(s) See Also Examples
Generated Cleveland-style cyan-magenta colors from a vector of values
specified by argument
x
. The interval the values can span can be specified by the
argument x.range
. Everything outside the range is safely
thresholded. If x.range
is NULL
, the range of x
will be used. The interval of the grayscale generated can be specified
by the argument dim.range
. By default this is the full grayscale
range, i.e. [0,1].
The returned colors has the same dimensions as argument x
.
1 | Colors$getCyanMagentaColors(x, x.range=NULL, dim.range=NULL, ncolors=256, ...)
|
x |
A matrix of size N, where N is the number of data values. |
x.range |
A vector of length two. |
dim.range |
A vector of length two. |
ncolors |
Maximum number of unique colors to generate.
Default value is |
... |
Not used. |
Returns a vector
of character
strings of length equal to the number of
rows (or the length) of x
. The resulting vector contains character
strings of format "#nnnnnn"
where n
is a hexadecimal digit.
Henrik Bengtsson (http://www.braju.com/R/)
*getGray()
,
*getHSV()
,
*getRGB()
.
palette
.
For more information see Colors
.
1 | ## Not run: See help(Color.getGray) for an example.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.