rcmap_quick: rCrimemap using pre-processed JSON data - a faster version of...

Description Usage Arguments Examples

View source: R/rcmap_quick.R

Description

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

Usage

1
2
3
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

1
2
3
4
5
## Create a heatmap with default settings
rcmap_quick()

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

woobe/rCrimemap documentation built on May 4, 2019, 9:47 a.m.