linPal | R Documentation |
Create a color gradient to use for plotting continuous values.
linPal(from = "#FFFFFF", to = "#E51636", n = 256, alpha = NULL)
from |
first RGB color |
to |
last RGB color |
n |
number colors in output |
alpha |
optional: if not NULL, alpha (transparency) value for all colors |
A palette of colors of length 'n' where the first and last color are equal to 'from' and 'to', and the R, G and B values are linearly interpolated between those in 'from' and 'to'.
?
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.