# load packages
if(!require(pacman))
install.packages("pacman")
pacman::p_load(tidyverse,
countdown,
hexbin,
palmerpenguins,
ggrepel,
here,
waffle,
scales)
The downloaded binary packages are in
/var/folders/61/5w0zfjkx2ks_c31ggc0f8gch0000gt/T//RtmpFe2QJa/downloaded_packages
# set theme for ggplot2
ggplot2::theme_set(ggplot2::theme_minimal(base_size = 14))
# set width of code output
options(width = 65)
# set figure parameters for knitr
knitr::opts_chunk$set(
fig.width = 7, # 7" width
fig.asp = 0.618, # the golden ratio
fig.retina = 3, # dpi multiplier for displaying HTML output on retina
fig.align = "center", # center align figures
dpi = 300 # higher dpi, sharper image
)
# read in tucsonHousing.csv
tucsonHousing <- read_csv(here(
"slides", "01", "data" ,"tucsonHousing.csv"))