knitr::opts_chunk$set(echo = TRUE)

ggiteam

Overview

Want to make your plots in R look like the Baltimore innovation team's? Look no further! These functions will spruce up your plots, make them clear and legible, and give them a bit of Baltimore charm in one go.

Based on data visualization principles put forth by Edward Tufte (e.g. getting rid of chart junk, maximizing the ratio of information to ink, etc.) and incorporating Baltimore, Maryland thematic colors, your data viz can bear the brand of the City of Baltimore Mayor's Office of Innovation.

Installation

# You'll first need to install devtools if you don't already have it
# so that you can install a package from Github rather than CRAN.
# install.packages("devtools")
# library(devtools)
# install_github("city-of-baltimore/ggiteam")

Usage

This package is for use with ggplot2, a data graphics package that is part of Hadley Wickham's tidyverse. If you haven't used it before, check out chapter 3 on data visualization of his excellent online book R for Data Science.

library(tidyverse)
library(ggiteam)

mtcars %>%
  ggplot(aes(wt, mpg, color = factor(cyl))) +
  geom_point(size = 3) +
  theme_iteam_presentations() +
  scale_color_discrete_iteam()


city-of-baltimore/ggiteam documentation built on April 30, 2021, 8:32 p.m.