Description Usage Arguments Value Examples
theme_mcgill() creates a theme using the McGill University's visual identity to be used with ggplot2. See the visual identity at https://www.mcgill.ca/visual-identity/visual-identity-guide
1 | theme_mcgill(colour_use)
|
colour_use |
either 'fill' or 'colour' depending on the base plot. |
Reformatted ggplot with McGill University's visual identity theme.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
ggplot(data = mtcars, aes(x = hp, y = mpg, colour = as.factor(cyl))) +
geom_point(size = 2.5) +
theme_mcgill('colour')
## End(Not run)
## Not run:
ggplot(data = mtcars, aes(x = hp, fill = as.factor(cyl))) +
geom_density(alpha = 0.8) +
theme_mcgill('fill')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.