palettes | R Documentation |
Some simple colour palettes that may be used for images.
col.oro(n)
n |
Integer: number of colours. irainbow and grainbow accept negative values, in which case the order is reversed. |
All these functions return a vector of n colours that span the chosen colour palette. col.cloud
is a bit special, as it actually returns transparancy values. grainbow
is kind of a stupid name for grey-scaling. irainbow
and grainbow
accept negative values for n, in which case the order is reversed. For best results, some of these functions require RColorBrewer. If this is not available, a similar choice is made from standard colours.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.