This function is based on [palette()]. If palette is NULL, the used palette will be magma from gpplot2's viridis scale constructors.
Usage
scale_color_visualizer_discrete(
palette = "cat_5_main",
direction = 1,
reverse_guide = TRUE,
title_position = NULL,
...
)
scale_fill_visualizer_discrete(
palette = "cat_5_main",
direction = 1,
reverse_guide = TRUE,
title_position = NULL,
...
)
scale_fill_visualizer_continuous(
palette = "seq_5_main",
direction = 1,
reverse_guide = TRUE,
title_position = NULL,
...
)
scale_color_visualizer_continuous(
palette = "seq_5_main",
direction = 1,
reverse_guide = TRUE,
title_position = NULL,
...
)
Arguments
- palette
Palette name from [palette()].
- direction
1 or -1; should the order of colors be reversed?
- reverse_guide
Boolean indicating whether the guide should be reversed.
- title_position
Position of the title. See [ggplot2::guide_legend()]'s title.position argument.
- ...
Additional arguments passed to [ggplot2::discrete_scale()] if discrete or [ggplot2::scale_fill_gradient()] if continuous.