Skip to contents

Edit the ggplot2::theme() settings to use Appraise branding fonts and color.

Usage

appraise_theme(base_size = 16, type = c("grey", "white", "transparent"))

theme_appraise(base_size = 16, type = c("grey", "white", "transparent"))

Arguments

base_size

The size of the font used for the title of the plot. The size of a caption, a subtitle and axes is scaled with this size also.

type

Should the grey, white or transparent be applied with a ggplot2::theme()

Value

An updated ggplot object.

Note

Please pay attention that extra Appraise fonts are only possible if you have installed the fonts.

Examples


# Make sure you install the needed fonts:
# 1. IBM Plex Serif
# 2. IBM Plex Mono Light

library(ggplot2)
# White option
myplot <- ggplot(iris, aes(x = Sepal.Width, y = Sepal.Length, color = Species)) +
geom_point(size = 4) +
  labs(title = "Testing the title",
       subtitle = "Testing the subtitle")+
  appraise_theme(type = "white")+
  scale_color_manual(values = appraise_pal()(3)
       )

# Grey option
myplot <- ggplot(iris, aes(x = Sepal.Width, y = Sepal.Length, color = Species)) +
  geom_point(size = 4) +
  labs(title = "Testing the title")+
  appraise_theme(type = "grey")+
  scale_color_manual(values = appraise_pal()(3))