makeColorScale | R Documentation |
Given an integer, make a palette with a specified number of colors using palettes from RColorBrewer, and interpolation where necessary.
makeColorScale(ncolors, palette = "Set1")
ncolors |
Integer specifying the number of colors |
palette |
RColorBrewer palette name. (default: 'Set1') |
output Character vector of colors
makeColorScale(10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.