Description Usage Arguments Value References See Also Examples
Creates a vector of (n) contiguous colors (red-yellow-blue).
1 | palette_RYB(n = 100)
|
n |
number of colors. |
A character vector with n color codes.
This function is a wrapper around a modified palette according to:
Erich Neuwirth <erich.neuwirth@univie.ac.at> (2007). RColorBrewer: ColorBrewer palettes. R package version 1.0-2.
The palette is based on http://www.colorbrewer.org provided by Cynthia Brewer, Mark Harrower and The Pennsylvania State University.
rainbow
, heat.colors
,
topo.colors
1 2 3 4 | col <- palette_RYB(10)
x <- 1:100
z <- x %o% x
image(z, col=col)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.