choroMap: Basic interactive choropleth

Description Usage Arguments

View source: R/choroMap.R

Description

This function can be use to quickly generate a choropleth map from a SpatialPolygonsDataFrame.

Usage

1
2
choroMap(x, col.by, breaks = 5, alpha = 1, col = NULL, popup = NULL,
  ...)

Arguments

x

a SpatialPolygonsDataFrame.

col.by

a column name of x giving values to color polygons.

breaks

a numeric vector of cut points or a single number of intervals.

alpha

a numeric to control the transparency.

col

a vector of color usually generated by color palettes functions.

popup

a character vector providing popup content.

...

additional arguments which can be passed to writeMap.


Hackout2/epimap documentation built on May 6, 2019, 9:47 p.m.