Summary and Schedule
Lesson Authors: Leah A. Wasser, Megan A. Jones, Zack Brym, Kristina Riemer, Jason Williams, Jeff Hollister, Mike Smorul, Jemma Stachelek, Jarrett Byrnes (for COBALT version)
The episodes in this lesson cover how to open, work with, and plot vector and raster-format spatial data in R. Additional topics include working with spatial metadata (extent and coordinate reference systems), reprojecting spatial data, and working with raster time series data.
Prerequisites
Data Carpentry’s teaching is hands-on, so participants are encouraged to use their own computers to ensure the proper setup of tools for an efficient workflow. To most effectively use these materials, please make sure to download the data and install everything before working through this lesson.
R Skill Level
This lesson assumes you have some knowledge of R
. If
you’ve never used R
before, or need a refresher, start with
our Introduction
to R for Geospatial Data lesson.
Geospatial Skill Level
This lesson assumes you have some knowledge of geospatial data types and common file formats. If you have never worked with geospatial data before, or need a refresher, start with our Introduction to Geospatial Concepts lesson.
Install Software and Download Data
For installation instructions and to download the data used in this lesson, see the Geospatial Workshop Overview.
Setup RStudio Project
Make sure you have set up a RStudio project for this lesson, as described in the setup instructions and that your working directory is correctly set.
Setup Instructions | Download files required for the lesson | |
Duration: 00h 00m | 1. Intro to Raster Data |
What is a raster dataset? How do I work with and plot raster data in R? How can I handle missing or bad data values for a raster? |
Duration: 00h 50m | 2. Plot Raster Data |
How can I create categorized or customized maps of raster data? How can I customize the color scheme of a raster image? How can I make my visualizations interactive? |
Duration: 02h 00m | 3. Open and Plot Vector Layers | How can I distinguish between and visualize point, line and polygon vector data? |
Duration: 02h 30m | 4. Explore and Plot by Vector Layer Attributes | How can I compute on the attributes of a spatial object? |
Duration: 03h 30m | 5. Plot Multiple Vector Layers |
How can I make different vecotr layers line up? How can I plot multiple forms of vector data together? |
Duration: 04h 30m | 6. Handling Spatial Projection & CRS | How do I work with data sets that are in different projections? |
Duration: 05h 30m | 7. Convert from .csv to a Vector Layer | How can I import CSV files as vector layers in R? |
Duration: 06h 30m | 8. Extracting Data from Rasters using Vectors |
How can I crop raster objects to vector objects, and extract the summary
of raster pixels? |
Duration: 07h 30m | 9. Work with Multi-Band Rasters | How can I visualize individual and multiple bands in a raster object? |
Duration: 08h 30m | 10. Raster Calculations | How do I do math on rasters and extract pixel values for defined locations? |
Duration: 09h 30m | Finish |
The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.
This lesson is designed to be taught in conjunction with other lessons in the COBALT Geospatial workshop. For information about required software, and to access the datasets used in this lesson, see the setup instructions on the workshop homepage.