Learn R Programming

geostatsp (version 0.7.0)

murder: Murder locations

Description

Locations of murders in Toronto 2005-2010

Usage

data("murder")

Arguments

format

murder is a SpatialPoints object of murder locations. torontoPdens, torontoIncome, and torontoNight are rasters containing population density (per hectare), median household income, and ambient light respectively. torontoBorder is a SpatialPolygonsDataFrame of the boundary of the city of Toronto.

source

http://www.thestar.com/news/crime/torontohomicidemap.html, http://ngdc.noaa.gov/eog/viirs/download_viirs_ntl.html, http://www12.statcan.gc.ca/census-recensement/2011/geo/bound-limit/bound-limit-2011-eng.cfm, http://www12.statcan.gc.ca/census-recensement/2011/dp-pd/tbt-tt/Index-eng.cfm

Examples

Run this code
data("murder")
plot(torontoNight, main="Toronto ambient light")
plot(torontoBorder, add=TRUE)
points(murder, col="#0000FF40", cex=0.5)



data("torontoPop")
plot(torontoIncome, main="Toronto Income")
points(murder, col="#0000FF40", cex=0.5)

plot(torontoPdens, main="Toronto pop dens")
points(murder, col="#0000FF40", cex=0.5)

Run the code above in your browser using DataLab