Learn R Programming

GISTools (version 0.7-4)

newhaven: New Haven, Connecticut: Crime data with contextual information

Description

Data set from New Haven (CT) crime web site containing point sources of some crimes, plus roads, railways and census block spatial data frames.

Usage

data(newhaven) blocks breach famdisp burgres.f burgres.n places roads tracts

Arguments

Format

  • blocks Census blocks SpatialPolygonsDataFrame
  • roads Roads SpatialLinesDataFrame
  • places Place names SpatialPointsDataFrame
  • breach Breach of peace SpatialPointsDataFrame
  • famdisp Family dispute SpatialPointsDataFrame
  • tracts Census tracts SpatialPolygonsDataFrame
  • burgres.f Residential Burglary (Forced) SpatialPointsDataFrame
  • burgres.n Residential Burglary (Non-Forced) SpatialPointsDataFrame

Source

http://www.newhavencrimelog.org/

Examples

Run this code
# Read in map data for New Haven
data(newhaven)
# Plot census block boundaries
plot(blocks)
# Add a map scale
map.scale(534750,152000,miles2ft(2),"Miles",4,0.5,sfcol='red')
# ... and a title
title('New Haven (CT)')

Run the code above in your browser using DataLab