Learn R Programming

tmap (version 0.7)

get_polygon_ranges: Get ranges of the polygons

Description

Get the ranges of the polyons in the current projection. Also the total range of the shape object is returned.

Usage

get_polygon_ranges(shp, key = NULL)

Arguments

shp
shape object, i.e. a SpatialPolygons(DataFrame)
key
variable name in the shape data that identifies the polygons. If not specified, the default ID is used (see get_IDs).

Value

  • List containing a data.frame of ranges per polygon, and a range vector of the total shape object.