scale_fill_ifr: Apply IFR colour palette to ggplot object with six colours or...

View source: R/scale_fill_ifr.R

scale_fill_ifrR Documentation

Apply IFR colour palette to ggplot object with six colours or less

Description

This function is added to a ggplot object to apply a custom IFR colour palette.

Usage

scale_fill_ifr(...)

Details

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.

Examples

ggplot(mtcars, aes(as.factor(carb), fill = as.factor(carb))) +
  geom_bar() +
  scale_fill_ifr() +
  theme_ifr()

InStreamFisheries/IFRthemes documentation built on July 6, 2023, 3:24 p.m.