ggplot2

Extracting Data from Rasters

This document shows you how to extract data from rasters.  Getting The Libraries First, I’ll load in some packages to get the ability to work with raster data and to load in the Arapatus attenuatus data set (it is part of the default gstudio package). require(raster) ## Loading required package: raster ## Loading required package: sp require(gstudio) ## Loading required package: gstudio Loading and Cropping Rasters We can load in the raster, and then crop it to just the are we need.