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

bi_pal_manual

Create Manual Palette


Description

A function for structuring manual bi-variate palettes. All values must be entered as six-digit hex values (e.g. #000000) and must be preceded by the number symbol. Short forms of hex values (e.g. #000) are not accepted as valid inputs. For two-by-two palettes, only the 'val_1_1', 'val_1_2', 'val_2_1', and 'val_2_2' parameters are required. For three-by-three palettes, all parameters are required.

Usage

bi_pal_manual(val_1_1, val_1_2, val_1_3, val_2_1, val_2_2, val_2_3,
    val_3_1, val_3_2, val_3_3, preview = FALSE)

Arguments

val_1_1

A hex value for cell 1-1

val_1_2

A hex value for cell 1-2

val_1_3

A hex value for cell 1-3

val_2_1

A hex value for cell 2-1

val_2_2

A hex value for cell 2-2

val_2_3

A hex value for cell 2-3

val_3_1

A hex value for cell 3-1

val_3_2

A hex value for cell 3-2

val_3_3

A hex value for cell 3-3

preview

A logical scalar; if TRUE (default), an image preview will be generated. If FALSE, a vector with hex color values will be returned.

Examples

custom_pal <- bi_pal_manual(val_1_1 = "#E8E8E8", val_1_2 = "#73AE80",
  val_2_1 = "#6C83B5", val_2_2 = "#2A5A5B")

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.