View source: R/scale_fill_ifr.R
scale_fill_ifr | R Documentation |
This function is added to a ggplot object to apply a custom IFR colour palette.
scale_fill_ifr(...)
A colour palette based on the IFR logo that can be applied to plots with siz colours or less.
For plots with siz to ten colours, use scale_fill_ifr10
.
ggplot(mtcars, aes(as.factor(carb), fill = as.factor(carb))) +
geom_bar() +
scale_fill_ifr() +
theme_ifr()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.