Maps the levels of a discrete variable to specific pattern names. When
values is named, names are matched to the variable's levels (so the
order of values does not need to match the level order). When unnamed,
values are matched positionally to levels.
Arguments
- values
Named or unnamed character vector of pattern names. Built-in base patterns:
"none","hatch","crosshatch","horizontal","vertical","dots","weave". Each base pattern (except"none") also has_denseand_sparsevariants (e.g."hatch_dense","crosshatch_sparse") that use a pre-set tighter or looser spacing. Custom patterns registered viaregister_pattern()are also accepted.- ...
Passed to
ggplot2::discrete_scale().
