Last data update: 2014.03.03

R: Prepares A Polygon Table
create_map_tableR Documentation

Prepares A Polygon Table

Description

Takes the user supplied polygon table and prepares it to be plotted correctly with the lmplot function.

Usage

create_map_table(tmp.map, IDcolumn=NA, poly.thresh=.0001)

Arguments

tmp.map

a shapefile to be parsed into a flat table for use with ggplot2.

IDcolumn

specify which column in the data file to use as a unique identifier.

poly.thresh

specify the minimum polygon area which to keep. All polygons with less area will be dropped.

Value

A flat table of all the polygons in the shapefile with an entry for each vertice.

Author(s)

Quinn Payton Payton.Quinn@epa.gov

Examples

## Not run: 
data("USstates")
head(USstates@data)
statePolys <- create_map_table(USstates, IDcolumn="ST")
head(statePolys)

## End(Not run)

Results