| palette_diverging | R Documentation |
Generate a diverging color palette (blue-white-red).
palette_diverging(n, alpha = 1, midpoint = "white")
n |
Number of colors to generate. |
alpha |
Transparency (0-1). |
midpoint |
Color for midpoint. |
Character vector of colors.
palette_diverging(5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.