PUBH 6199: Visualizing Data with R, Summer 2025
2025-06-12
fivethirtyeight
– Datasets from FiveThirtyEight journalismgapminder
– Development stats across countriesbabynames
– U.S. baby name trends (SSA)nycflights13
– Flight data from NYC airports in 2013dslabs
, DAAG
, MASS
– Rich with demo dataNow let’s explore and build something great!
Members: Alia Jamil, Nina Wubu
Topic: Climate, natural disasters and health disparities
Members: Amel Attalla, Belen Zemas
Topic: Sexual health and vulnerable populations
Members: Sora Ely, Ashlan Jackson
Topic: Health systems and global health
Members: Riya Belani, Molayo Ifebajo
Topic: Behavioral health and digital platforms
Members: Jordi Fischbach, Ahmed Shah
Topic: To be determined
Image by Yan Min Thwin
Tip
You can do these using the Git GUI in RStudio, I am showing you the command line version so you can learn a different method and choose what you prefer.
Note
If you cannot find the Terminal tab, you can also open a terminal window by clicking on the Tools menu and selecting Terminal > New Terminal. If that doesn’t work, check if your RStudio is out of date. Click Help, About RStudio to check the current version.
feat/clean-data
:In RStudio, open the 4-lab4.qmd
file and make some changes to the text.
For example, you can add a new section called “Data Wrangling” and write a few sentences about what tidy data is about.
You can also add a new code chunk to the file and write some R code to load the tidyverse
package and read in a CSV file.
After you are satisfied with your changes, save the file and knit the 4-lab4.qmd
file to generate the HTML file.
You should see a message that says “On branch feat/clean-data” and “Changes not staged for commit”.
Your files should be listed under Changes to be committed.
Note
Since this is your repository, you probably don’t have anyone to collaborate with (yet). Go ahead and merge your Pull Request now. Later in the semester you may want your teammate to look over your code before they merge.
Reference: GitHub and RStudio
You have become a better collaborator!
Source: Allison Horst and Julia Lowndes
Assignment | Description | Weight |
---|---|---|
Project proposal | You did this for HW3. Outlines your topic, research questions, and initial ideas | 7% |
Project plan | You are doing this for Lab4. Includes your final topic, selected data sources, and visualization plan | 3% |
Project prototype V1 | You will bring this to class on June 24th and meet one-on-one with the teaching team to get feedback | 7% |
Final data visualization product | Include at least three polished visualizations that answer your research questions | 18% |
Final project presentation | You will present your project in a short, engaging walkthrough in class on June 26th | 10% |
Peer evaluation for final project | You will complete this in class on June 26th to provide constructive feedback to your peers | 5% |
Week | Due date | Deliverable |
---|---|---|
4 | June 9 | Project proposal |
5 | June 16 | Project plan |
6 | June 24 | Project prototype V1 |
6 | June 26 | Final data visualization product |
6 | June 26 | Final project presentation |
6 | June 26 | Peer evaluation for final project |
In-Class Activity:
4-lab4.qmd
Task | Deadline | Person responsible |
---|---|---|
(e.g.) set up GitHub repo | June 13 | Silas |
10:00
Choose one from the following three options:
Same Question, Different Audiences (3 static charts): Create three visualizations that answer the same question, each designed for a different audience (e.g., general public, policy makers, technical experts).
Same Data, Different Questions (3 static charts): Use the same dataset to answer three different but related questions, each with its own focused visualization.
Interactive Dashboard (1 app with 3 components): Build an interactive dashboard (e.g., with shiny, plotly, or similar tools) that includes at least three visual components for exploring your data dynamically.
Accompanying your visualizations, you should also include a write-up around 500-1000 words that consists of an introduction, research questions, data sources, data wrangling, data visualizations, findings, and conclusion.
HW6
Source: CS171
In-Class Activity: Think aloud study demo
ClimaWATCH
https://climawatch.climate.mathematica.org/
Imagine you’re briefing a policymaker about heat risks in vulnerable counties. What would you show them from this tool?
10:00
Fill out the end-of-class survey
~ This is the end of Lab 4 ~
10:00
PUBH 6199: Visualizing Data with R