Download the assignment file, complete the three questions, and submit your .qmd and rendered .html to Canvas.
packages chunk first, then knit.
Use the download link below. Save to your PAF516/Lab2/ folder. Rename to Lab2_Assignment_YourLastName.qmd before editing.
Press Cmd+Shift+K (Mac) or Ctrl+Shift+K (PC). Steps 1–6 render automatically. Review the output — these are the results you will interpret for Q1.
Q1: Interpret the pre-filled results (text, 3 parts). Q2: Create a second bivariate map by filling in the scaffold chunks at the end of the file (code). Q3: Compare the two bivariate maps (text). Re-knit after completing Q2.
Submit both Lab2_Assignment_YourLastName.qmd and Lab2_Assignment_YourLastName.html.
After knitting, answer the following three parts:
Replace the placeholder text in the Q1 section. A few sentences per bullet is sufficient.
Create a second bivariate choropleth using hardship_index and pct_renter (percent renter-occupied housing) instead of pct_minority:
biscale workflow from Step 3q2.a (classify) and q2.b (map + legend)bi_class() → bi_scale_fill() → bi_legend() + inset_element()Compare the bivariate map from Step 3 (hardship × % minority) with your new map from Q2 (hardship × % renter):
| Action | Mac | PC |
|---|---|---|
| Run current chunk | Cmd+Return | Ctrl+Enter |
| Knit / Render | Cmd+Shift+K | Ctrl+Shift+K |
Right-click → Save Link As. Save to your PAF516/Lab2/ folder.
Lab2_Assignment_YourLastName.qmd — your edited source fileLab2_Assignment_YourLastName.html — the rendered output