//img.uscri.be/pth/478556eb6970d3b3dabfc4036a62792a94e3dce4
Cet ouvrage fait partie de la bibliothèque YouScribe
Obtenez un accès à la bibliothèque pour le lire en ligne
En savoir plus

Performing spatial RLQ analysis with

De
11 pages
Performing spatial-RLQ analysis with Stephane Dray February 10, 2006 This document indicates how to perform spatial-RLQ analysis (Dray et al., 2002) in R. Commands are written in red and outputs are written in blue. Contents 1 Introduction 1 2 Data 2 3 Spatial-RLQ analysis 6 1 Introduction R is a statistical language which can be freely downloaded from internet (http: // The package spdep written by Roger Bivand is de- voted to the creation and to the manipulation of spatial weighting matrices. You have to install it and to load it into your R session: library(spdep) You need also the ade4 package (multivariate analyses) and the maptools pack- age (if data are stored in the shapefile format (ArcView GIS): library(ade4) library(maptools) Lastly, download and source the file spatialrlq.R available in the software section of my website. source(spatialrlq.R) 2 Data We illustrate the method using two data sets. The data consists in a zip archive containing two ArcView shapefiles (ESRI file format). Files are extracted and data are loaded into R with the read.shape function of the maptools library. zip.file.

  • rlq analysis

  • polylist

  • maj min

  • rhone-alpes region

  • maj moy

  • environmental variable

  • maj maj

  • performing spatial


Voir plus Voir moins
Performing
spatial-RLQ analysis
St´ephaneDray
February 10, 2006
with
This document indicates how to perform spatial-RLQ analysis (Dray et al., 2002) in R. Commands are written in red and outputs are written in blue.
Contents
1 Introduction
2 Data
3 Spatial-RLQ analysis
1 Introduction
1
2
6
R is a statistical language which can be freely downloaded from internet (http: //www.r-project.org/). The packagespdepwritten by Roger Bivand is de-voted to the creation and to the manipulation of spatial weighting matrices. You have to install it and to load it into your R session:
library(spdep)
You need also theade4package (multivariate analyses) and themaptoolspack-age (if data are stored in the shapefile format (ArcView GIS): library(ade4) library(maptools)
Lastly, download and source the filespatialrlq.Ravailable in the software section of my website.
source("spatialrlq.R")
2
Data
We illustrate the method using two data sets. The data consists in a zip archive containing two ArcView shapefiles (ESRI file format). Files are extracted and data are loaded into R with theread.shapefunction of themaptoolslibrary.
zip.file.extract("environment.dbf", "spatialrlqdata.zip")
1