Learn R Programming

spdep (version 0.1-10)

columbus: Columbus OH spatial analysis data set

Description

The columbus data frame has 49 rows and 22 columns. Unit of analysis: 49 neighbourhoods in Columbus, OH, 1980 data. In addition the data set includes a polylist object polys with the boundaries of the neighbourhoods, a matrix of polygon centroids coords, a matrix bbs with the bounding boxes of the polygons, and col.gal.nb, the neighbours list from read.gal("spweights/data/col-queen.gal").

Usage

data(columbus)

Arguments

source

Anselin, Luc. 1988. Spatial econometrics: methods and models. Dordrecht: Kluwer Academic, Table 12.1 p. 189. http://www.spacestat.com, ftp://cho.pol.uiuc.edu/pub/spacestat/data/columbus.ZIP

Details

The row names of columbus and the region.id attribute of polys are set to columbus$NEIGNO.

Examples

Run this code
data(columbus)
crime.f <- as.ordered(cut(columbus$CRIME,
  breaks=quantile(columbus$CRIME, probs=seq(0,1,0.2)),
  include.lowest=TRUE))
colours <- c("salmon1", "salmon2", "red3", "brown", "black")
plot(bbs[,1], bbs[,4], xlab="", ylab="", asp=1, type="n",
  xlim=range(c(bbs[,1],bbs[,3])), ylim=range(c(bbs[,2],bbs[,4])))
for (i in 1:length(polys)) 
  polygon(polys[[i]], col=colours[codes(crime.f[i])])
legend(x=c(5.8, 7.1), y=c(13, 14.5), legend=levels(crime.f),
  fill=colours, bty="n")
title(main=paste("Columbus OH: residential burglaries and vehicle
thefts",
  "per thousand households, 1980"))

Run the code above in your browser using DataLab