View source: R/kristen_colors.R
| kristen.colors | R Documentation |
This function sets up a color palette with n colors,
with gradually changing hues of grey, purple, blue, green, yellow,
orange, red, and brown (in this order). This palette is a
particularly good choice for scatterplot.density
function, for which it is the default choice.
kristen.colors(n=64)
n |
Number of colors to include in palette. |
This function calls colorRampPalette and returns
n colors from this palette.
Returns n colors (in hexadecimal).
This function is called by default by the function
scatterplot.density, which is included in this
package.
Original code was authored by Kristen Foley and included in the
precursor to scatterplot.density. Packaged into a new
function by Jenise Swall.
colorRampPalette
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.