Interactive reporting + visualization with Shiny I
Lecture 24
Dr. Mine Çetinkaya-Rundel
Duke University STA 313 - Spring 2023
Warm up
Announcements
Peer evals due Friday at 5pm
Meet with your mentor / TAs
Guest lecture on Tuesday: Allison Horst, ObservableHQ
Setup
# load packageslibrary(countdown)library(tidyverse)library(gganimate)# set theme for ggplot2ggplot2::theme_set(ggplot2::theme_minimal(base_size =14))# set width of code outputoptions(width =65)# set figure parameters for knitrknitr::opts_chunk$set(fig.width =7, # 7" widthfig.asp =0.618, # the golden ratiofig.retina =3, # dpi multiplier for displaying HTML output on retinafig.align ="center", # center align figuresdpi =300# higher dpi, sharper image)
This data does not reflect the general population; it reflects Ask a Manager readers who self-selected to respond, which is a very different group (as you can see just from the demographic breakdown below, which is very white and very female).