| scale_UC | R Documentation |
Apply the official University of Cincinnati expanded palette to ggplot graphics. The default ordering prioritizes the primary UC colors, followed by expanded brand accents intended for data visualization.
order |
Numeric vector listing the order in which the colors should be used. |
darken |
Relative amount by which the scale should be darkened (for positive values) or lightened (for negative values). |
alpha |
Alpha transparency level of the color. Default is no transparency. |
... |
common discrete scale parameters: |
A discrete ggplot2 scale object. The helper aliases return the
same scale with aesthetics preset for colour or fill mappings.
Other palettes:
palette_OkabeIto,
palette_UC,
scale_OkabeIto()
library(ggplot2)
ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) +
geom_point() + scale_color_UC()
ggplot(iris, aes(Sepal.Length, fill = Species)) +
geom_density(alpha = 0.7) + scale_fill_UC()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.