colorpal | R Documentation |
Creates an expanded color palette from an existing color palette by interpolating new colors.
colorpal(pal, n)
pal |
A vector of colors |
n |
Number of colors to be interpolated |
An expanded vector of colors
# Make 15 color palette from 11 color red-blue palette
library(RColorBrewer)
colorpal(brewer.pal(11, "RdBu"), 15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.