Learn R Programming

spdep (version 0.1-2)

plotpolys: Plot polygons

Description

A helper function for plotting polygons in a global bounding box.

Usage

plotpolys(pl, bb, col = NA, border = par("fg"), add = FALSE)

Arguments

pl
list of polygons og class polylist
bb
matrix of polygon bounding boxes - columns are LL(x), LL(y), UR(x), UR(y)
col
colurs to use for filling the polygons
border
the color to draw the border
add
add to existing plot

See Also

poly2nb

Examples

Run this code
example(poly2nb)

Run the code above in your browser using DataLab