Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bi_scale_color

Apply Bivariate Color to ggplot Object


Description

Applies the selected palette as the color aesthetic when geom_sf is used and the bi_class variable is given as the color in the aesthetic mapping.

Usage

bi_scale_color(pal, dim = 3, ...)

Arguments

pal

Either palette name (one of "Brown", "DkBlue", "DkCyan", "DkViolet", or "GrPink") or a custom palette object created with bi_pal_manual.

dim

The dimensions of the palette, either 2 for a two-by-two palette or 3 for a three-by-three palette.

...

Arguments to pass to scale_fill_manual

Value

A ggplot object with the given bivariate palette applied to the data.


biscale

Tools and Palettes for Bivariate Thematic Mapping

v0.2.0
GPL-3
Authors
Christopher Prener [aut, cre] (<https://orcid.org/0000-0002-4310-9888>), Timo Grossenbacher [aut], Angelo Zehr [aut], Joshua Stevens [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.