Description Usage Arguments Value Examples
View source: R/theme_alberta.R
theme_alberta() creates a theme using the University of Alberta visual identity to be used with ggplot2. See the visual identity at https://www.ualberta.ca/toolkit/visual-identity/our-colours
1 | theme_alberta(colour_use, colour_palette)
|
colour_use |
either 'fill' or 'colour' depending on the base plot. |
colour_palette |
either 'alpha', 'beta', 'gamma' or 'delta' depending on which palette is selected. |
Reformatted ggplot with the University of Alberta'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_alberta('colour', 'beta')
## End(Not run)
## Not run:
ggplot(data = mtcars, aes(x = hp, fill = as.factor(cyl))) +
geom_density(alpha = 0.8) +
theme_alberta('fill', 'alpha')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.