Learn R Programming

rCrimemap (version 0.0.4)

rcmap_quick: rCrimemap using pre-processed JSON data - a faster version of rcmap()

Description

rCrimemap using pre-processed JSON data - a faster version of rcmap()

Usage

rcmap_quick(period = "2014-01", map_size = c(960, 500), map_center = "Lichfield", provider = "OpenStreetMap.BlackAndWhite", zoom = 6, marker = NULL)

Arguments

period
Specific month of interest between Dec 2010 and Jan 2014 in 'yyyy-mm' format (e.g. 2014-01)
map_size
Resolution of the map (e.g. Full HD = c(1920 x 1080))
map_center
Center of the map, Lichfield is approx. center of England & Wales
provider:
Base map service provider (e.g. "OpenStreetMap.BlackAndWhite") (see http://leaflet-extras.github.io/leaflet-providers/preview/index.html)
zoom
Zoom level of the map
marker
Place a marker at the center? (default = NULL)

Examples

Run this code
## Create a heatmap with default settings
rcmap_quick()

## Be more specific
rcmap_quick(period = "2014-01", map_size = c(1920,1080), provider = "MapQuestOpen.OSM")

Run the code above in your browser using DataLab