theme_SLU: SLU theme for ggplot2

View source: R/theme_SLU.R

theme_SLUR Documentation

SLU theme for ggplot2

Description

SLU theme for ggplot2

Usage

theme_SLU(palette, dark = TRUE)

Arguments

palette

character or numeric defining the desired color palette

dark

logical return theme for dark or light color scheme. Default dark.

Value

a ggplot theme using SLU colors

Examples

library(ggplot2)
p1 <- ggplot(iris, mapping = aes(x = Sepal.Width, y = Sepal.Length))

p1 + labs(title = "Grey on green") +
  geom_point(color = SLUpalette("grey")["Glimmer"]) +
  theme_SLU("green")

kagervall/SLUcolors documentation built on Jan. 31, 2024, 11 a.m.