Description Usage Arguments Value See Also Examples
inspired by http://stackoverflow.com/questions/13353213/gradient-of-n-colors-ranging-from-color-1-and-color-2
1 | getGradientPaletteFactory(colors = c("black", "white"))
|
colors |
pair of colors for gradient range (min, max): default is |
function (factory) that creates linear gradient palette for given number of colors
getDiscretePaletteFactory
, colorRampPalette
1 2 | paletteMaker = getGradientPaletteFactory(c("yellow","red"))
myPalette = paletteMaker(10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.