Learn R Programming

ggblanket (version 11.1.0)

weave_col_palettes: Set a discrete colour and fill palettes

Description

Set a discrete colour and fill palettes

Usage

weave_col_palettes(
  col_palette_d = jumble,
  col_palette_c = viridisLite::mako(n = 9, direction = -1),
  col_palette_o = scales::pal_viridis(option = "G", direction = -1),
  col_palette_na_d = "#CDC5BFFF",
  col_palette_na_c = "#988F88FF",
  col_palette_na_o = "#988F88FF",
  ...
)

Arguments

col_palette_d

For a discrete scale, a character vector of hex codes. Use NULL for ggplot2 default.

col_palette_c

For a continuous scale, a character vector of hex codes. Use NULL for ggplot2 default.

col_palette_o

For an ordinal scale, a scales::pal_*() function. Use NULL for ggplot2 default.

col_palette_na_d

For a discrete scale, a hex code.

col_palette_na_c

For a continuous scale, a hex code.

col_palette_na_o

For an ordinal scale, a hex code.

...

Dots to support trailing commas etc.