theme_ubc: The University of British Columbia ggplot2 theme

Description Usage Arguments Value Examples

View source: R/theme_ubc.R

Description

theme_ubc() creates a theme using the University of British Columbia's visual identity to be used with ggplot2. See the visual identity at https://brand.ubc.ca/guidelines/downloads/ubc-colour-and-fonts/

Usage

1
theme_ubc(colour_use)

Arguments

colour_use

either 'fill' or 'colour' depending on the base plot.

Value

Reformatted ggplot with the University of British Columbia's visual identity theme.

Examples

 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_ubc('colour')

## End(Not run)

## Not run: 
ggplot(data = mtcars, aes(x = hp, fill = as.factor(cyl))) +
geom_density(alpha = 0.8) +
theme_ubc('fill')

## End(Not run)

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