Skip to contents

Semantic fill scale for group names

Usage

scale_fill_groupmap(
  values = NULL,
  dictionary = "default",
  groups = NULL,
  na.value = "#BFBFBF",
  ...
)

Arguments

values

Named vector of colors. If NULL, uses dictionary.

dictionary

Semantic color dictionary name.

groups

Optional vector of group names to validate before plotting.

na.value

Fallback color for unknown groups.

...

Passed to ggplot2::scale_fill_manual().

Value

A ggplot scale.