Scales that use the family's tones (discrete/continuous)
Source:R/theme_albers.R
scale_color_albers.RdDiscrete scales use albers_discrete(): by default the
family's tone is paired with its Albers complement and ochre so adjacent
groups stay distinguishable. Use type = "family" for the single-hue
ramp. Continuous scales run from a light tint to the family's A900.
Arguments
- family
Palette family. Defaults to the
albersdown.familyoption (set byalbers_vignette()while a vignette renders), else"red".- discrete
Whether to use a discrete palette; if FALSE, uses a gradient.
- type
Discrete colour set,
"contrast"(default) or"family"; seealbers_discrete().- ...
Passed to underlying
ggplot2scale.
Examples
# \donttest{
if (requireNamespace("ggplot2", quietly = TRUE)) {
ggplot2::ggplot(iris, ggplot2::aes(Sepal.Length, Sepal.Width,
color = Species)) + ggplot2::geom_point() + scale_color_albers()
}
# }