Skip to contents

A quick and dirty way to show AAGI colours in a palette plot.

Usage

display_aagi_cols(name, n = NULL)

Arguments

name

A either aagi_colours or a palette name from the lists below.

n

Numeric Number of different colours in the palette, minimum 3, maximum depends on the palette. Defaults to 5. Ignored if name is aagi_colours.

There are two (2) types of palettes provided, sequential and diverging.

  1. Sequential palettes are suited to ordered data that progress from low to high. Lightness steps dominate the look of these schemes, with light colours for low data values to dark colours for high data values.

  2. Diverging palettes put equal emphasis on mid-range critical values and extremes at both ends of the data range. The critical class or break in the middle of the legend is emphasized with light colours and low and high extremes are emphasized with dark colours that have contrasting hues.

The sequential palettes names are:

  • “aagi_blues”,

  • “aagi_bright_greens”,

  • “aagi_BrYl”,

  • “aagi_greens”,

  • “aagi_greys”,

  • “aagi_reds”,

  • “aagi_oranges”,

  • “aagi_RdYl”,

  • “aagi_teals”,

  • “aagi_TlGnYl”,

  • “aagi_TlYl”,

  • “aagi_yellows”

All the sequential palettes are available in variations from 3 different values up to 11 different values.

The diverging palettes are:

  • “aagi_BuOr”,

  • “aagi_BuYl”,

  • “aagi_GnYl”,

  • “aagi_RdBu”,

  • “aagi_RdTl”,

  • “aagi_TlGn”

All the diverging palettes are available in variations from 3 different values up to 11 different values.

For qualitative palettes, the lowest number of distinct values available always is 3, but the largest number is different for different palettes. It is given together with the palette names in the following table.

Value

NULL. Called for its side-effects, a plot of the given palette.

Examples


# display the official AAGI colours
display_aagi_cols(name = "aagi_colours")


# display five colours from the Blue Orange diverging palette
display_aagi_cols(name = "aagi_BuOr")