opmi_pal | R Documentation |
Creates a function that can be used by scale_fill_opmi
and scale_color_opmi
.
Can also be used to create manual color/fill palettes for scale_color_manual
and scale_fill_manual
.
opmi_pal(
palette = "main",
reverse = FALSE,
discrete = TRUE,
mono = FALSE,
monocol = "orange",
...
)
palette |
One of "main", "massdot", "diverging", "diverging2", or "rt" |
reverse |
Logical, whether to reverse palette |
discrete |
Logical, whether palette is for discrete scale |
mono |
Logical, whether to use a single-color palette |
monocol |
If |
... |
Additional arguments passed to |
A function that can be used by scale_fill_opmi
and scale_color_opmi
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.