
Diverging colour and fill scales for ggplot2
scale_colour_covalence_diverging.RdThe 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, ororange_darkblue). Default isorange_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).
Details
These functions are inspired by a 2022 blog post by Cara Thompson.