Summary and Schedule
Lesson Authors: Leah A. Wasser, Megan A. Jones, Zack Brym, Kristina Riemer, Jason Williams, Jeff Hollister, Mike Smorul, Jemma Stachelek
Lesson Maintainers: {{ page.maintainers | join: ‘,’ }}
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 layer raster data in a single image? |
Duration: 02h 00m | 3. Reproject Raster Data | How do I work with raster data sets that are in different projections? |
Duration: 03h 00m | 4. Raster Calculations | How do I subtract one raster from another and extract pixel values for defined locations? |
Duration: 04h 00m | 5. Work with Multi-Band Rasters | How can I visualize individual and multiple bands in a raster object? |
Duration: 05h 00m | 6. Open and Plot Vector Layers | How can I distinguish between and visualize point, line and polygon vector data? |
Duration: 05h 30m | 7. Explore and Plot by Vector Layer Attributes | How can I compute on the attributes of a spatial object? |
Duration: 06h 30m | 8. Plot Multiple Vector Layers |
How can I create map compositions with custom legends using
ggplot? How can I plot raster and vector data together? |
Duration: 07h 30m | 9. Handling Spatial Projection & CRS | What do I do when vector data don’t line up? |
Duration: 08h 30m | 10. Convert from .csv to a Vector Layer | How can I import CSV files as vector layers in R? |
Duration: 09h 30m | 11. Manipulate Raster Data |
How can I crop raster objects to vector objects, and extract the summary
of raster pixels? |
Duration: 10h 30m | 12. Raster Time Series Data | How can I view and and plot data for different times of the year? |
Duration: 11h 30m | 13. Create Publication-quality Graphics | How can I create a publication-quality graphic and customize plot parameters? |
Duration: 12h 30m | 14. Derive Values from Raster Time Series | How can I calculate, extract, and export summarized raster pixel data? |
Duration: 13h 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 Data Carpentry Geospatial workshop. For information about required software, and to access the datasets used in this lesson, see the setup instructions on the workshop homepage.