ggthemepark
January 25, 2022 · View on GitHub
The ggthemepark package provides many new themes for ggplot2.
Installation
You can install löatest version of ggthemepark from GitHub with:
# install.packages("devtools")
devtools::install_github("NickGlaettli/ggthemepark")
Usage
The themes are used as any ggplot theme. The themes simple and
lightblue provide the possibility to add a line along th y-axis by
calling yline = TRUE.
#Theme simple
ggplot(iris, aes(Sepal.Length, Sepal.Width))+
geom_point()+
theme_simple(yline = TRUE)
#Theme lightblue
ggplot(iris, aes(Sepal.Length, Sepal.Width))+
geom_point()+
theme_lightblue()
#Theme bw2
ggplot(iris, aes(Sepal.Length, Sepal.Width))+
geom_point()+
theme_bw2()
#Theme owid
ggplot(iris, aes(Sepal.Length, Sepal.Width))+
geom_point()+
theme_owid()
