Learn R Programming

afcharts (version 0.5.1)

af_colours: Individual Analysis Function colours

Description

Quick access to individual colours from the Analysis Function colour palettes.

Usage

af_dark_blue

af_orange

af_grey

af_pale_grey

Arguments

Format

An object of class character of length 1.

An object of class character of length 1.

An object of class character of length 1.

An object of class character of length 1.

Examples

Run this code

library(dplyr)
library(ggplot2)

# Example of using af_dark_blue to colour bars
iris %>%
  group_by(Species) %>%
  summarise(Petal.Width = mean(Petal.Width)) %>%
  ggplot() +
  geom_col(
    aes(Species, Petal.Width),
    fill = af_dark_blue
 ) +
  scale_y_continuous(
    expand = expansion(c(0, 0.05))
  ) +
  theme_af()

Run the code above in your browser using DataLab