| idea_palette_ramp | R Documentation |
IDEA palettes with ramped colors
idea_palette_ramp(palette = "div", alpha = 1, reverse = FALSE, year = 2024)
palette |
Choose from 'idea_palettes' list |
alpha |
transparency from 0 (completely transparent) to 1 (completely opaque) |
reverse |
If 'TRUE“, the direction of the color ramp is reversed. |
year |
Defaults to the most recent branding guidelines (year = 2024), but year = 2019 also available |
a function that takes the number of colors needed as an argument
library(scales)
# Defaults to the most recent branding guidelines (2024)
show_col(idea_palette_ramp()(10))
# Use the 2019 branding guidelines instead
show_col(idea_palette_ramp(year = 2019)(10))
filled.contour(volcano,color.palette = idea_palette_ramp(), asp=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.