Assignment 3


Your Name


March 10, 2024


Please submit your assignment as html file to me via email. Please call your assignment: “yourname_assignment3.html”. For example, I would submit submit something called “popescu_assignment3.html”. Please make sure that it is all in lower case. Please answer all the questions below.

Notice that some questions have more points than others. The maximum points on this assignment is 29.

1 Question

Total points: 1

Download the provided dataset containing air quality measurements from various monitoring stations in major cities in the US. Load in R using the `read.csv’ function. The original data is from the US Environmental Protection Agency.

2 Question

Total points: 1

The average small particulate matter (PM2.5) concentration has been used as an indicator for fine-particle air pollution. This has been of particular concern to regulators and public health experts because its microscopic size means it can be inhaled and absorbed into the bloodstream. Create a new dataframe by selecting “PM2.5 - Local Conditions” for parameter name and “PM25 24-hour 2012” for pollutant standard.

3 Question

Total points: 1

What are the dimensions of the final dataframe? How many columns and how many rows are there?

4 Question

Total points: 4

Now create the following map (as close as possible to what you see below). To get full points you need to

  • Load the US shapefile from relevant sources (1 point)
  • Decide on map coordinate extent (1 point)
  • Have a legend that contains both colors and sizes (1 point)
  • The variable that needs to be plotted has to be Arithmetic.Mean (1 point)
Loading required package: viridisLite