Spatial Analysis in R 06/09/2016 GUND institute for Ecological Economics University of Vermont Insu Koh Visualization in R.

Slides:



Advertisements
Similar presentations
Spatial.
Advertisements

1 Spatial Data What is Geographic Spatial Data? What are its Properties TWiST.
GIS for Environmental Science
Map Projections An important consideration in mapping our world.
GPS for Fire Management
Map Projections and Georeferencing
GIS Matthew Rosencrans Tom DiLiberto. Outline What is GIS? What can we do with it? What data can we work with?
Fall 2004CRSC 6 Remote Sensing Chapter 6 GIS Crop Science 6 Fall 2004 October 22, 2004.
Applied Cartography and Introduction to GIS GEOG 2017 EL
Coordinate Systems, Datums and Map Projections D’Arcangelis 11/9/09
Latitude Gives north-south location relative to the Equator.
CS 128/ES Lecture 2b1 Coordinate systems & projections.
Coordinate Systems, Datums and Map Projections
So What is GIS??? “A collection of computer hardware, software and procedures that are used to organize, manage, analyze and display.
19 th Advanced Summer School in Regional Science An introduction to GIS using ArcGIS.
Projections and Coordinate Systems, Continued
Understanding UTM.
Specific Types and Coordinate Systems
GPS for ICS Using Maps with GPS Using Maps with GPS.
Mapping in R Allan Hicks FISH 554A Beautiful Graphics in R 03/03/2014.
Map Projections Displaying the earth on 2 dimensional maps
GIS’s Roots in Cartography Getting Started With GIS Chapter 2.
Rebecca Boger Earth and Environmental Sciences Brooklyn College.
Introduction to ArcGIS for Environmental Scientists Module 2 – GIS Fundamentals Lecture 5 – Coordinate Systems and Map Projections.
Concept of Map Projection Presented by Reza Wahadj University of California,San Diego (UCSD)
Concept of Map Projection. Map Projection A map projection is a set of rules for transforming features from the three- dimensional earth onto a two-dimensional.
Spatial Data Model: Basic Data Types 2 basic spatial data models exist vector: based on geometry of points lines Polygons raster: based on geometry of.
Map Projections. What is a Map Projection? A mathematical expression used to represent the 3D surface of the earth on a 2D map Always results in distortions.
Lecture 4 Understanding Coordinate Systems. Geographic Coordinate systems GCS Spherical Ellipsoidal Curved.
CORSE '07 Spatial Data Spatial data comes in many forms. So How does a GIS work with the data so that it can put the data in the right place on a map?
Interfacing R with GIS Xiaogang (Marshall) Ma School of Science Rensselaer Polytechnic Institute Tuesday, Apr 02, 2013 GIS in the Sciences ERTH 4750 (38031)
Coordinate Systems Global Coordinate System – Latitude, Longitude and elevation UTM – eastings and northings, reference points are the equator and the.
Introduction to ArcGIS for Environmental Scientists Module 1 – Data Visualization Chapter 1 – GIS Basics.
1 Introduction to Geographical Data Kris Ray Confederated Tribes of the Colville Reservation.
GIS concepts, skills and tools
Raster Concepts.
Geographic Information Systems Using ESRI ArcGIS 9.3 INTRODUCTION.
CE 525 1/17/2013. Who’s here? Acceptable responses: Here Present Yep Yes sir!
GEOG 2007A An Introduction to Geographic Information SystemsFall, 2004 C. Earl A model is a ‘synthesis of data’ + information about how the data interact.
L 5 Map Projections Lecture Map projections are used to transfer or “project” geographical coordinates onto a flat surface.. There are many projections:
Some of this material was presented by Bruce Stauffer, Advanced Technology Solutions, Inc., and Todd Bacastow, Penn State. GIS BOOT CAMP Topic 4-8 Todd.
Exploring GIS concepts. Introduction to ArcGIS I (for ArcView 8, ArcEditor 8, and ArcInfo 8) Copyright © 2000–2003 ESRI. All rights reserved. 2-2 Organizing.
URBDP 422 URBAN AND REGIONAL GEO-SPATIAL ANALYSIS Lecture 3: Building a GeoDatabase; Projections Lab Session: Exercise 3: vector analysis Jan 14, 2014.
GIS & Health ESPM 9: W 5-8 April 7, 2010 Instructors: Maggi Kelly Kevin Koy Mark O’Connor Geospatial Innovation Facility College of Natural Resources -
A Quick Introduction to GIS
What is GIS? GIS is an integrated system used to view and manage information about geographic places, analyze spatial relationships, and model spatial.
Unit Nine: Georeferenced Data In this unit… ► Data Supported by ArcGIS ► Geodesy  Datum  Coordinate Systems  Projections ► ArcGIS and Projections ►
Copyright © 2000–2004 ESRI. All rights reserved. Introduction to ArcGIS I Working with georeferenced data.
1 Spatial Data Spatial data comes in many forms. So How does a GIS work with the data so that it can put the data in the right place on a map?
Tipe-tipe Spesifik and Sistem Koordinat © 2005, Austin Troy.
Representing Geography. Datum Defines the size, shape, and orientation of Earth Provides.. – Origin: starting place that allows coordinates to be meaningful.
GIS Data Models III GEOG 370 Instructor: Christine Erlien.
West Hills College Farm of the Future. West Hills College Farm of the Future Precision Agriculture – Lesson 3 Basics of GIS A GIS system provides for.
Review of Projections and Coordinate Systems
Geocoding and Georeferencing Scott Bell GIS Institute.
Mapping in R Allan Hicks FISH 554A Beautiful Graphics in R 03/02/2015.
Geocoding and Georeferencing
Features that make a map
Spatial Analysis in R Points, lines, polygons, & raster! 06/16/2016
ArcGIS Topology Shapefiles, Coverages, Geodatabases
Introduction to GIS.
Local Cartesian Coordinate Systems
Maps 1 EPID 799C Fall 2017.
UTM and State Plane.
Lecture 2 – Spatial Data Preparation
Coordinate Reference Systems
Datums and Coordinate Systems
Map Projections Displaying the earth on 2 dimensional maps
Maps 1 EPID 799C Fall 2018.
Map Projections Displaying the earth on 2 dimensional maps
Presentation transcript:

Spatial Analysis in R 06/09/2016 GUND institute for Ecological Economics University of Vermont Insu Koh Visualization in R

Introduction Why do we use R? Types of spatial data Reading and exporting spatial data in R packages / functions Projection Visualization in R Lab!

Why do we use R? Spatial data Stats R Graph {RPyGeo} ArcGIS R is slow!!

Bivand et al p. 5 “R package sp to extend R with classes and methods for spatial data (Pebesma and Bivand, 2005). Classes specify a structure and define how spatial data are organised and stored. Methods are instances of functions specialised for a particular data class.”

Basic R Object oriented programming. Four basic data types Vector v <- c(1,2,3,4) vName <- c('a', 'b', 'c', 'd') Matrix m <- matrix(v, nrow=2, ncol=2) Data frame: df <- data.frame(name=vName, value=v) List: l <- list(v, m, df) L <- list(vector=v, matrix=m, dataframe = df) Class of object: class(v) "numeric" class(vName) "character“ class(m) "matrix" Additional source:

Types of spatial data Point, a single point location, such as a GPS reading or a geocoded address Line, a set of ordered points, connected by straight line segments Polygon, an area, marked by one or more enclosing lines, possibly containing holes Grid, a collection of points or rectangular cells, organized in a regular lattice The sp package provides classes and methods for points, lines, polygons, and grids

Read spatial data in R! library(maptools) readShapeSpatial : for Esri shape file for point, line, and polygon data library(rgdal) readOGR : for all Esri files library(raster) Raster : read all grid file format (.tif,.img,…)

Export spatial data in R For point, line, polygon data set. writeOGR(object, dsn = data folder, layer = layer name, driver="ESRI Shapefile") For grid data set writeRaster(object, filename = “data path / file name.extension”)

Display Basic functions plot: for all spatial data points: for point data lines: for line data ggplot, spplot Looks bad!

Coordinate reference systems (CRS) “Coordinate reference systems (CRS) are at the heart of geodetics and cartography: how to represent a bumpy ellipsoid on the plane.” Matching CRS is important to overlay two different spatial data source.

Universal Transverse Mercator (UTM) Source: The mercator projection preserves angles and direction, but distorts distance. To minimize this distortion, the UTM divides the Earth into sixty zones, and uses a secant transverse Mercator projection in each zone.

Projection > proj4string(nlcd) [1] "+proj=utm +zone=18 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs“ > proj4string(hydroDam) [1] "+proj=tmerc +lat_0=42.5 +lon_0= k= x_0= y_0=0 +datum=NAD83 +units=m +no_defs +ellps=GRS80 +towgs84=0,0,0" Functions for reprojection! 1.spTransform(obj1, CRSobj = obj2’s CRS) # for sp data 2.projectRaster(obj1, crs= obj2’s CRS) # for raster data

Question? Use R! Download the code and data set