View source: R/ggugent_style.R
This function allows you to add the Ghent University theme to your ggplotgraphics.
1 | ggugent_style(font = "Helvetica")
|
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.