A family of ggplot2 color scales based on the doplar palette
(blue to red). Available in continuous (_c), discrete
(_d), binned (_binned), and diverging (_div)
variants for both fill and colour aesthetics.
American-spelling aliases (color) are provided for all
colour variants.
Usage
scale_fill_doplar_c(reverse = FALSE, ..., aesthetics = "fill")
scale_colour_doplar_c(reverse = FALSE, ..., aesthetics = "colour")
scale_fill_doplar_d(reverse = FALSE, ..., aesthetics = "fill")
scale_colour_doplar_d(reverse = FALSE, ..., aesthetics = "colour")
scale_fill_doplar_binned(n = 6, reverse = FALSE, ..., aesthetics = "fill")
scale_colour_doplar_binned(n = 6, reverse = FALSE, ..., aesthetics = "colour")
scale_fill_doplar_div(mid = "#ffffff", limit = NULL, ..., aesthetics = "fill")
scale_colour_doplar_div(
mid = "#ffffff",
limit = NULL,
...,
aesthetics = "colour"
)Arguments
- reverse
Logical. Reverse the color direction (default
FALSE).- ...
Additional arguments passed to the underlying ggplot2 scale function.
- aesthetics
Character string or vector of character strings listing the name(s) of the aesthetic(s) that this scale works with.
- n
Integer. Number of bins (colors) to use for binned scales. Default is
6.- mid
Character. Midpoint color for diverging scale (default white).
- limit
Numeric vector of length 2. Range of the scale.
