Datasets for Spatial Analysis

Diverse spatial datasets for demonstrating, benchmarking and teaching spatial data analysis. It includes R data of class sf (defined by the package 'sf'), Spatial ('sp'), and nb ('spdep'). Unlike other spatial data packages such as 'rnaturalearth' and 'maps', it also contains data stored in a range of file formats including GeoJSON, ESRI Shapefile and GeoPackage. Some of the datasets are designed to illustrate specific analysis techniques. cycle_hire() and cycle_hire_osm(), for example, is designed to illustrate point pattern analysis techniques.

Build Status CRAN version CRAN RStudio mirror downloads

Datasets for spatial analysis

  • alaska - Alaska multipolygon
  • aggregating_zones - See congruent
  • baltimore - House sales prices, Baltimore, MD 1978
  • congruent - Sample of UK administrative zones that have shared borders with aggregating_zones (incongruent does not have shared borders) for teaching the concept of spatial congruence
  • cycle_hire - Cycle hire points in London
  • cycle_hire_osm - Cycle hire points in London from OSM
  • hawaii - Hawaii multipolygon
  • incongruent - See congruent
  • lnd - The boroughs of London
  • nz - The regions of New Zealand
  • nz_height - High points in New Zealand
  • seine - Small river network in France
  • urban_agglomerations - Major urban areas worldwide
  • us_states - US states polygons
  • world - World country polygons
  • wheat - Mercer and Hall wheat yield data


  • auckland - Marshall's infant mortality in Auckland dataset
  • elect80 - 1980 Presidential election results
  • house - Lucas county OH housing
  • SplashDams - Data for Splash Dams in western Oregon
  • state.vbm - US State Visibility Based Map


  • afcon - Spatial patterns of conflict in Africa 1966-78
  • boston - Boston Housing Data
  • columbus - Columbus OH spatial analysis data set
  • eire - Eire data sets
  • nc.sids - North Carolina SIDS data
  • NY_data - New York leukemia data
  • - US 1960 used car prices


  • elev - Small raster dataset representing elevation values
  • grain - Small raster dataset representing grain size classes


  • coffee_data - World coffee production statistics by country, 2016 - 2017
  • getisord - Getis-Ord remote sensing example data
  • hopkins - Hopkins burnt savanna herb remains
  • huddersfield - Prevalence of respiratory symptoms
  • jenks71 - Illinois 1959 county gross farm product value per acre
  • us_states_df - Selected American Community Survey (ACS) data
  • worldbank_df - Selected World Bank data


Get the released version from CRAN:


Get the development version from github:



This package interacts with data available through the 'spDataLarge' package, which is available in a 'drat' repository. To access this data package, run:

install.packages("spDataLarge", repos = "", type = "source")

The size of the 'spDataLarge' package is approximately 20 MB.


Feel free to submit issues and enhancement requests.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


2.0.1 by Jakub Nowosad, 3 months ago

Report a bug at

Browse source code at

Authors: Roger Bivand [aut] , Jakub Nowosad [aut, cre] , Robin Lovelace [aut] , Mark Monmonier [ctb] (author of the state.vbm dataset) , Greg Snow [ctb] (author of the state.vbm dataset)

Documentation:   PDF Manual  

CC0 license

Imports sp, raster

Suggests foreign, maptools, rgdal, sf, spDataLarge, spdep, spatialreg

Imported by GWnnegPCA, gwer, scgwr, sphet.

Depended on by spatialreg, spdep, spgwr.

Suggested by GWmodel, R2BayesX, RPyGeo, apsimx, classInt, distanceto, echelon, epiR, geonetwork, rayrender, rcartocolor, rflexscan, sugarbag, tilemaps, varycoef.

See at CRAN