ppolygon: Projected polygon function

Description Usage Arguments Details See Also Examples

View source: R/ppolygon.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
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")

jpfrench81/autoimage documentation built on March 17, 2021, 12:09 a.m.