knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(hueniverrrsity)
library(ggplot2)

Introduction

All universities and colleges have a visual identity composed of their specific colours and typefaces. This enables all publications from a given university to have a cohesive theme and be immediately identifiable.

hueniverrrsity is a package designed to apply the visual themes of four Canadian Universities to ggplot2 objects. The package currently supports the visual identities of University of Alberta, McGill University, the University of Toronto, and the University of British Columbia.

Functions

Input:

Input:

Input:

Examples

``` {r, include = TRUE}

Create scatter plot

ggplot(data=mtcars, aes(x = hp, y = mpg, colour = as.factor(cyl))) + geom_point(size = 3, alpha = 0.8) + theme_alberta('colour', 'beta')

Create density plot

ggplot(data = mtcars, aes(x = hp, fill = as.factor(cyl))) + geom_density(alpha = 0.8) + theme_alberta('fill', 'delta')

- `theme_mcgill()`

``` {r, include = TRUE}
# Create scatter plot
ggplot(data = mtcars, aes(x = hp, y = mpg, colour = as.factor(cyl))) +
  geom_point(size = 3, alpha = 0.8) +
  theme_mcgill('colour')

# Create density plot
ggplot(data = mtcars, aes(x = hp, fill = as.factor(cyl))) +
  geom_density(alpha=0.8) +
  theme_mcgill('fill')

``` {r, include = TRUE}

Create scatter plot

ggplot(data = mtcars, aes(x = hp, y = mpg, colour = as.factor(cyl))) + geom_point(size = 2.5) + theme_toronto('colour', 'vibrant')

Create density plot

ggplot(data = mtcars, aes(x = hp, fill = as.factor(cyl))) + geom_density(alpha = 0.8) + theme_toronto('fill', 'awards')

- `theme_ubc()`

``` {r, include = TRUE}
# Create scatter plot
ggplot(data = mtcars, aes(x = hp, y = mpg, colour = as.factor(cyl))) +
  geom_point(size = 2.5) +
  theme_ubc('colour')

# Create density plot
ggplot(data = mtcars, aes(x = hp, fill = as.factor(cyl))) +
  geom_density(alpha=0.8) +
  theme_ubc('fill')


UBC-MDS/hueniverrrsity documentation built on April 1, 2020, 4:36 a.m.