View source: R/scales_camp_rio.R
| scale_color_camp_rio | R Documentation |
Camp RIO color scale palette for ggplot2
scale_color_camp_rio(
palette = "div",
discrete = TRUE,
alpha = 1,
reverse = FALSE,
year = 2022,
...
)
scale_colour_camp_rio(
palette = "div",
discrete = TRUE,
alpha = 1,
reverse = FALSE,
year = 2022,
...
)
palette |
Choose from 'camp_rio_palettes_2022' list |
discrete |
whether to use a discrete color palette |
alpha |
transparency |
reverse |
logical, Reverse the order of the colours? |
year |
Defaults to the most recent branding guidelines (year = 2022) |
... |
additional arguments to passed to 'scale_color_gradientn' |
library(ggplot2)
ggplot(mtcars, aes(mpg, wt)) +
geom_point(aes(colour = factor(cyl))) +
scale_colour_camp_rio(palette="qual")
ggplot(mtcars, aes(mpg, wt)) +
geom_point(aes(colour = hp)) +
scale_colour_camp_rio(palette="qual", discrete = FALSE)
ggplot(data = mpg) +
geom_point(mapping = aes(x = displ, y = hwy, color = class)) +
scale_colour_camp_rio(palette="bluegray")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.