ggugent_style: Add Ghent University theme to ggplot chart

Description Usage Examples

View source: R/ggugent_style.R

Description

This function allows you to add the Ghent University theme to your ggplotgraphics.

Usage

1
ggugent_style(font = "Helvetica")

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library("ggplot2")
library("extrafont")
data("diamonds")

ggplot(
  subset(diamonds, carat > 2.2 & depth > 55 & depth < 70),
  aes(x = depth, fill = cut)) +
  geom_histogram(colour = "black", binwidth = 1, position = "dodge") +
  theme_bw() +
  scale_fill_ugent_all() +
  ggugent_style()

rdpauw/ggugent documentation built on Dec. 22, 2021, 1:04 p.m.