Functions to help set up colour palettes for use in plots.
1 2 3 4 5 |
n |
number of colour values to be returned |
ramp |
text specifying what ramp to use |
start |
darkness for darkest colour (0 is black) |
log |
logical, should interval be divided linearly? |
ind |
An index specifying the spacing of the values (0 - 1) |
val |
The values to which a smoothed spline is fitted |
predind |
The location for which the smoothed spline function is evaluated (0 - 1) |
smooth |
the smoothing as |
x |
Number of colors |
tmp |
Array of rgb values (dim=c(ncolors,3)) along which the color sequence is interpolated |
stop |
the upper bound for brightness of colours (1 is white) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.