Skip to main content

Gbedegnon Azondekon has completed

Spatial Analysis with sf and raster in R

Start course For Free
4 hours
4,550 XP
Statement of Accomplishment Badge

Loved by learners at thousands of companies


Course Description

There has never been a better time to use R for spatial analysis! The sf package has made working with vector data in R a breeze and the raster package provides a set of powerful and intuitive tools to work gridded data like satellite imagery. Instead of the painful process of performing your spatial analysis in GIS systems like ArcGIS or QGIS and then shuffling your results into another system for analysis, you can move your entire spatial analysis workflow into R. In this course you will learn why the sf package is rapidly taking over spatial analysis in R. You will read in spatial data, manipulate vectors using the dplyr package and learn how to work with coordinate reference systems. You'll also learn how to perform geoprocessing of vectors including buffering, spatial joins, computing intersections, simplifying and measuring distance. With rasters, you will aggregate, reclassify, crop, mask, and extract. The last chapter of the course is devoted to showing you how to make maps in R with the ggplot2 and tmap packages and performing a fun mini-analysis that brings together all your new skills.
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more
Try DataCamp for BusinessFor a bespoke solution book a demo.
  1. 1

    Vector and Raster Spatial Data in R

    Free

    An introduction to import/export, learning the formats and getting to know spatial data. Some discussion of why we're using sf rather than sp.

    Play Chapter Now
    Reading vector and raster data into R
    50 xp
    Reading vector data
    100 xp
    Reading raster data
    100 xp
    Getting to know your vector data
    50 xp
    sf objects are data frames
    100 xp
    Geometry is stored in list-columns
    100 xp
    Extracting geometric information from your vector layers
    100 xp
    First look at plotting vector spatial objects
    100 xp
    Getting to know your raster data
    50 xp
    Learning about your raster objects
    100 xp
    Accessing raster data values
    100 xp
    Plot your raster object
    100 xp
  2. 3

    Conducting spatial analysis with the sf and raster packages

    Now that you have learned about sf and raster objects and have prepared your layers for analysis we can begin conducting true spatial analysis. Both sf and raster have a suite of functions that allow you to do single-layer kinds of analysis like buffering and computing hulls as well as multi-layer operations like intersections, overlaps, masking and clipping.

    Play Chapter Now
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more

Datasets

CanopyImperviousLandcoverManhattanNeighborhoodsParksTrees

Collaborators

Collaborator's avatar
Richie Cotton
Zev Ross HeadshotZev Ross

President, ZevRoss Spatial Analysis

See More

Join over 13 million learners and start Spatial Analysis with sf and raster in R today!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.