ppoints: Projected points function

Description Usage Arguments Details See Also Examples

View source: R/ppoints.R

Description

ppoints draws a sequence of points for projected coordinates.

Usage

1
ppoints(x, y = NULL, type = "p", proj, ...)

Arguments

x

coordinate vectors of points to plot.

y

coordinate vectors of points to plot.

type

character indicating the type of plotting; actually any of the types as in plot.default.

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.

...

Further graphical parameters passed to the points function.

Details

The mapproject function is used for projection.

See Also

points, mapproject, pimage

Examples

1
2
3
4
5
6
7
8
data(narccap)
# plot image using bonne projection (w/o grid lines)
pimage(lon, lat, tasmax[,,1], proj = "bonne",
       parameters = 40, paxes.args = list(grid = FALSE))
# get U.S. cities with population of about 40k or more
data(us.cities, package = "maps")
# add cities to existing plot
ppoints(us.cities$long, us.cities$lat, proj = "bonne")

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