View source: R/theme_phontrast.R
| scale_colour_phontrast | R Documentation |
Discrete ggplot2 scales built on phontrast_palette(). These are
the default scales for all phontrast plotting functions and can be added to
any ggplot to match the package's visual identity.
scale_colour_phontrast(...)
scale_color_phontrast(...)
scale_fill_phontrast(...)
... |
Passed to |
A ggplot2 scale object.
if (requireNamespace("ggplot2", quietly = TRUE)) {
ggplot2::ggplot(iris, ggplot2::aes(Sepal.Length, Sepal.Width,
color = Species)) +
ggplot2::geom_point() +
scale_color_phontrast() +
theme_phontrast()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.