Loading in Rasters

Much of the work in my laboratory uses spatial data in some context.  As such it is important to try to be able to grab and use spatial data to in an easy fashion.  At present, R is probably the best way to grab, visualize, and analyze spatial data. For this example, I went to http://worldclim.org and downloaded the elevation (altitude) for tile 13 (eastern North America) as a GeoTiff.  A GeoTiff is a specific type of image format that has spatial data contained within it.  The tile data has a pixel resolution of 30 arc seconds which puts us in the general area of ~ 1km.   First, we need to get things set up to work.

Then we can load in and visualize the data.


We can see what the raster relates to by looking at the extent.

or its contents.

And you are off to the races.  This should get you going with the data.  Other posts you may be interested in looking at are found by here.

One thought on “Loading in Rasters

Comments are closed.