Setup
This is a collection of notes to fill in examples and walkthroughs for the Spring 2024 session of GES 778. It will be updated throughout the semester.
First, install the course’s companion R package, justviz
. This is in the class’s GitHub organization.
Next, some packages that aren’t required by the justviz
package but will get us started for class and are used in these notes:
cran_pkgs <- c("ggplot2", # data visualization powerhouse
"dplyr", # nice for calculations and data manipulation
"tidyr", # data reshaping
"forcats", # handling factors
"stringr", # string cleanup
"showtext", # nice fonts
"ggrepel", # force-repelled placement of labels
"osmdata", # easy access to sf data from OpenStreetMap
"tigris", # shapefiles from Census Bureau TIGER
"patchwork", # assembling plots
"ggmap", # basemaps in ggplot
"ggtext", # use rich text / markdown in ggplot
"here", # marks project roots
"knitr", # preps conversions between markdown and other formats
"gt", # like ggplot but for tables
"rcartocolor") # color palettes
install.packages(cran_pkgs)