Society for Conservation GIS, July 2021

As we get going, please:
i) open the course website:
https://ucanr-igis.github.io/rspatial_scgis21/

ii) introduce yourself on the community forum:
https://etherpad.wikimedia.org/p/rspatial-scgis2021

Workshop Materials

  • Website: https://ucanr-igis.github.io/rspatial_scgis21/
  • Setup
  • Data files
  • Part 1. Fundamental Spatial Data Operations in R

    July 20, 2021. 8:00a - 11:00a PDT
    Syntax review, spatial R packages, importing vector and raster data, plotting with tmap, projections, attribute queries

  • Introduction
  • Goals, learning strategies, workshop materials, sample data, RStudio

  • Syntax Review
  • Syntax rules, variables, naming styles, data types, filtering

  • Working with Packages
  • Finding packages, spatial package ecosystem, tidyverse, installing and loading packages, what’s in a package

  • Foundational GIS Concepts
  • Vector vs. Raster Data, Projections, R vs Desktop GIS

  • Files and Folders
  • Working with files & folders for import and export

  • Importing and Plotting Vector Data
  • Spatial data classses; importing from Shapefiles, KMLs, geodatabases, and GeoPackages; basic plotting; converting data frames to sf

  • Visualization with tmap
  • Creating static and interactive web maps with tmap

  • Importing and Plotting Raster Data
  • Importing rasters, raster metadata, basic plotting

    Part 2. Spatial Data Analysis Methods and Conservation Applications

    July 22, 2021. 8:00a - 11:00a PDT
    Automation, geoprocessing, spatial queries, getting data from APIs, raster analyses, conservation examples

  • Part 1 Review
  • Review of Part 1

  • Common Manipulations for sf Objects
  • WKT, projections, converting data frames into sf, exporting

  • Tables 101
  • Data frames & matrices

  • Manipulating Tables with dplyr
  • Data frame methods, piping, dplyr, importing csv files

  • Automation and Batch Processing
  • Automating tasks with branches and loops; vectorized functions

  • Custom Functions
  • Writing your own functions

  • Getting Data from APIs
  • Using data and API packages, functions to import data directly into R, API keys

  • Geoprocessing 1
  • Geoprocessing functions with sf

  • Geoprocessing 2
  • Dissolving boundaries, geoprocessing chains, Voronoi polygons

  • Spatial Queries
  • Spatial queries, finding nearest neighbors

  • Raster Manipulations
  • Projecting a raster, mask, resample, stretch, stack, rasterize vectors, export

  • Raster Analyses
  • Global, zonal, focal, and local operations; distance surfaces, binary masks, raster algebra, extracting pixel values

  • Notebook: Site a new campground
  • Use raster algebra to find suitable locations for a new campground in YNP

  • Notebook: Compute Watershed stats
  • Use zonal stats to compute watershed properties

    Bonus

  • Working with Color
  • Color models, color functions, RColorBrewer

  • Connecting R & ArcGIS
  • R-ArcGIS Bridge, importing data from AGOL

    Other

  • Other Resources
  • Workshop Etherpad
  • Acknowledgements