Skip to content

city-of-baltimore/ggiteam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()

About

Office of Innovation's colors and themes for ggplot2 plots in R.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages