PUBH 6199: Visualizing Data with R, Summer 2026
2026-06-11
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: Bao, Jean
Topic: HIV prevalence and treatment resources in urban areas in the U.S.

Members: Abby, Sharon
Topic: Hazardous waste facilities vulnerability to wild fire/flooding risk. How risk has changed over time/under different climate change scenarios. How does FEMA funding cuts affect all of these?

Members: Salem, Megan
Topic: Chemical production facilities and maternal health outcomes in communities across the U.S.

Coordinate with your partner before either of you accepts the assignment — the order matters.
Find your partner and agree on a team name in advance (e.g., team-woody, lowercase, no spaces). Both of you need to know the exact name.
Student 1 opens the assignment link → clicks Accept this assignment → when prompted, chooses Create a new team and types your agreed-upon team name.
Student 2 opens the same assignment link → clicks Accept this assignment → instead of creating a new team, scrolls the list of existing teams, finds your partner’s team name, and clicks Join.
You’ll both now see the same starter repository. Clone it locally and collaborate as usual (push, pull, branches, PRs).
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 |
|---|---|---|
| Brainstorm project ideas | You did this today. Outlines your topic, research questions, and initial ideas | Part of participation |
| Project plan | You are doing this for Lab4. Includes your final topic, selected data sources, and visualization plan | 3.75% |
| Final data visualization product | Include at least three polished visualizations that answer your research questions | 20% |
| Final project presentation | You will present your project in a short, engaging walkthrough in class on June 26th | 13% |
| Peer evaluation for final project | You will complete this in class on June 25th to provide constructive feedback to your peers | 7% |
| Week | Due date | Deliverable |
|---|---|---|
| 5 | June 15 | Project plan |
| 6 | June 23 | Project prototype V1 |
| 6 | June 25 | Final data visualization product |
| 6 | June 25 | Final project presentation |
| 6 | June 25 | Peer evaluation for final project |
In-Class Activity:
4-lab4.qmd| Task | Deadline | Person responsible |
|---|---|---|
| (e.g.) set up GitHub repo | June 12 | Bogdan |
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.
HW5Source: CS171

Fill out the end-of-class survey
~ This is the end of Lab 4 ~

PUBH 6199: Visualizing Data with R