Themes | R Documentation |
theme.hadleyUsed to look like a default ggplot2 graph
theme.packersGet a Green Bay Packers football theme
Built-in themes
theme.hadleyUsed to look like a default ggplot2 graph
theme.packersGet a Green Bay Packers football theme
ggplotTheme <- theme.hadley
gbTheme <- theme.packers
# Code to get theme:
ggplot_config <- system.file("extdata", "ggplot.yaml", package = "gsplot")
theme.hadley <- gsplot(frame.plot=FALSE, config.file=ggplot_config) %>%
background_color(col="grey90") %>%
grid(col = "white", lty = 1) %>%
axis(side = c(1,2), lwd = 0, lwd.ticks = 1)
packers_config <- system.file("extdata", "packers.yaml", package = "gsplot")
theme.packers <- gsplot(frame.plot=FALSE, config.file=packers_config) %>%
background_color(col="#203731") %>%
grid(col = "gold", lty = 1, lwd=3) %>%
axis(side = c(1,2), lwd = 0)
## Not run:
save(theme.hadley, theme.packers, file="sysdata.rda")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.