Description Usage Arguments Value See Also Examples
A grid of colors is plotted.
1 |
n |
Number of columns and rows of colors to display |
col |
A vector of colors |
No value returned, plots an n
by n
grid of colors.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # simple, perhaps not so useful application with default palette:
Rlitir(12, 1:144)
# Define a palette with some colors:
ramp <- colorRampPalette(c("khaki1", "gold", "orange",
"darkorange2", "red", "darkred", "black"))
# number of columns and rows to display
n <- 10
Rlitir(n, ramp(n^2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.