Description Usage Arguments Value References Examples
Creates a color vector using different palettes, e.g. from the colorspace package.
1 |
N |
Number of colors. | |||||||||||||||||
palette |
Palette shortcut:
| |||||||||||||||||
col.opt |
Options for the palette. See help pages for the specific palettes. | |||||||||||||||||
revert |
Logical. The color vector is returned in reverse order. |
A color vector.
Martijn Wijffelaars. Synthesis of Color Palettes. PhD thesis, Technische Universiteit Eindhoven, 2008.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
require(MASS)
mat.layout <- grid.layout(nrow = 2 , ncol = 2)
vp.mat <- viewport(layout = mat.layout)
pushViewport(vp.mat)
rmb(formula = ~Type+Infl+Cont+Sat, data = housing, col = "rgb", vp = c(1,1))
rmb(formula = ~Type+Infl+Cont+Sat, data = housing, col = "q17", vp = c(1,2))
rmb(formula = ~Type+Infl+Cont+Sat, data = housing, col = "hcl", vp = c(2,1))
rmb(formula = ~Type+Infl+Cont+Sat, data = housing, col = "seq", vp = c(2,2))
popViewport()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.