ppolygon {autoimage}R Documentation

Projected polygon function

Description

ptext draws polygons using the vertices given in x and y, possibly with projected coordinates.

Usage

ppolygon(x, y = NULL, proj, ...)

Arguments

x

vectors containing the coordinates of the vertices of the polygon.

y

vectors containing the coordinates of the vertices of the polygon.

proj

A character string indicating what projection should be used for the included x and y coordinates. The default is "none". The other valid choices correspond to the "projection" argument in the mapproject function, which is used for the projection.

...

graphical parameters such as xpd, lend, ljoin and lmitre can be given as arguments.

Details

The mapproject function is used for projection.

See Also

polygon, mapproject, pimage

Examples

data(narccap)
# plot image using bonne projection (w/o grid lines)
pimage(lon, lat, tasmax[,,1], proj = "bonne",
       parameters = 40, paxes.args = list(col = "grey"))
# filled polygon for Colorado border
data(copoly)
ppolygon(copoly, proj = "bonne", col = "orange")

[Package autoimage version 2.2.3 Index]