theme_SLU | R Documentation |
SLU theme for ggplot2
theme_SLU(palette, dark = TRUE)
palette |
character or numeric defining the desired color palette |
dark |
logical return theme for dark or light color scheme. Default dark. |
a ggplot theme using SLU colors
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.