Simple personal theme and palette for ggplot2
devtools::install_github("Waxtiz/waxtheme")
library(waxtheme)library(ggplot2)
library(waxtheme)
ggplot(iris, aes(Sepal.Length, Petal.Length, color = Species)) +
geom_point() +
labs(title = "First, a chart title",
subtitle = "Below, a subtitle",
caption = "And finally, a caption text.") -> p1
p1
p1 + waxtheme::theme_wax() +
waxtheme::scale_color_wax(discrete = T)df <- data.frame(x = rnorm(10000), y = rnorm(10000))
ggplot(df, aes(x = x, y = y)) +
geom_hex() +
coord_equal() -> p1
p1
p1 +
theme_wax()+
scale_fill_wax()The fonts are previously downloaded using the sysfonts package :
sysfonts::font_add_google(name = "Fira Sans", family = "fira-sans")
sysfonts::font_add_google(name = "Roboto Slab", family = "roboto-slab")
showtext::showtext_auto()Alternatively, you can use the default fonts by specifying the theme = "default" option in the theme_wax() function.
p1 + waxtheme::theme_wax(theme = "default")
