README.md

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 and dplyr before installing ggiteam from Github
# install.packages("devtools")
# install.packages("dplyr")
# library(devtools)
# library(dplyr)
# 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)
## -- Attaching packages ---------------------------------------------- tidyverse 1.2.1 --

## v ggplot2 2.2.1.9000     v purrr   0.2.4     
## v tibble  1.4.2          v dplyr   0.7.4     
## v tidyr   0.8.0          v stringr 1.3.0     
## v readr   1.1.1          v forcats 0.3.0

## -- Conflicts ------------------------------------------------- tidyverse_conflicts() --
## x dplyr::filter() masks stats::filter()
## x dplyr::lag()    masks stats::lag()
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.