Skip to contents

The scale_*_covalence_diverging functions provide diverging scales of Covalence colours for use in ggplot2 plots.

Usage

scale_colour_covalence_diverging(
  palette = "orange_teal",
  reverse = FALSE,
  midpoint = 0,
  na_colour = "#cccccc"
)

scale_color_covalence_diverging(
  palette = "orange_teal",
  reverse = FALSE,
  midpoint = 0,
  na_colour = "#cccccc"
)

scale_fill_covalence_diverging(
  palette = "orange_teal",
  reverse = FALSE,
  midpoint = 0,
  na_colour = "#cccccc"
)

Arguments

palette

One of the diverging colour palettes (orange_teal, orange_purple, or orange_darkblue). Default is orange_teal).

reverse

Should the palette be reversed? Either 'TRUE' or 'FALSE'.

midpoint

Numeric value for midpoint. Default is 0.

na_colour

Colour for missing values. Default is "#cccccc" (grey80).

Value

Diverging colour/fill scales for ggplot2.

Details

These functions are inspired by a 2022 blog post by Cara Thompson.

Examples