Skip to content

Waxtiz/waxtheme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wax theme

Simple personal theme and palette for ggplot2


Installation

devtools::install_github("Waxtiz/waxtheme")
library(waxtheme)

Usage

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)

Rplot01

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()

Rplot02

Fonts

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")

About

Personal ggplot2 theme and colors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages