This assignment provides you a chance to practice your skills and build understanding around the various methods of describing spatial patterns using point processes, patch metrics, and multivariate skills. By the end of this assignment you should be able to:
Generate a ppp object using spatstat and interogate its first- and second-order properties
Convert a categorical raster into a series of patch metrics
Use principal components analaysis and kmmeans clustering to identify gradients and classes in multivariate raster data.
Build introductory maps using ggplot to visualize your data
Instructions
Join the assignment repository. In the docs folder, you’ll find the instructions and questions for the assignment (assignment03.qmd).
Change the yaml header of the document to include your name and the course number as your affiliation
Complete the tasks in the assignment making at least 3 commits
Render the document and push your final html and quarto documents to your repository.
Submission:
Submit a single Quarto document (.qmd) with integrated code, outputs, and written responses. Your document should be written as if it were a lab notebook entry: clear enough that another researcher could reproduce your work without asking you questions. Your assignment will be considered complete if the following are true:
You have at least 3 commits in your version history (which I can access in GitHub classroom)
You have pushed your final Quarto document
You have pushed a rendered .html version of your document.
In addition, you’ll need to use geodata to get the 30s elevation dataset
elevation_30s("USA")
class : SpatRaster
size : 3984, 7164, 1 (nrow, ncol, nlyr)
resolution : 0.008333333, 0.008333333 (x, y)
extent : -126.5, -66.8, 18.8, 52 (xmin, xmax, ymin, ymax)
coord. ref. : lon/lat WGS 84 (EPSG:4326)
source : USA_elv_msk.tif
name : USA_elv_msk
min value : -105
max value : 4351
Important: these data are in a geodetic reference system and have a different resolution than your nlcd data. You’ll need to reproject your NLCD data and then resample your climate and elevation data to get them all lined up.