View source: R/scale_fill_ul.R
scale_fill_ul | R Documentation |
Applies color fill to the given data based on the University of Ljubljana's visual identity guidelines.
scale_fill_ul(
palette = "primary",
discrete = TRUE,
reverse = FALSE,
midpoint = NA,
neutralColor = "white",
guide = guide_colourbar(frame.colour = "#58595b", title.vjust = 0.8),
...
)
palette |
A character string indicating the color palette to use. Default is |
discrete |
A logical indicating whether the scale is discrete. Default is |
reverse |
A logical indicating whether to reverse the order of colors in the palette. Default is |
midpoint |
A numeric value indicating the midpoint for the color scale in case of a divergent color scale (default is |
neutralColor |
A character string specifying the color to use for neutral values (default is |
guide |
A guide function specification, such as |
... |
Other arguments passed on to the scale functions ( |
This function returns a color fill scale to be used with ggplot2. It uses color palettes defined according to the visual identity of the University of Ljubljana.
A discrete or gradient fill scale.
scale_fill_gradientn
, scale_fill_gradient2
, discrete_scale
ggplot(mtcars, aes(x = mpg, fill = factor(cyl))) +
geom_density(alpha = 0.7) +
scale_fill_ul(discrete = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.