Edit the ggplot2::theme() settings to use Appraise branding
fonts and color.
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,whiteortransparentbe applied with aggplot2::theme()
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))