ppoints
draws a sequence of points for projected
coordinates.
ppoints(x, y = NULL, type = "p", proj, ...)
coordinate vectors of points to plot.
coordinate vectors of points to plot.
character indicating the type of plotting; actually any of
the type
s as in plot.default
.
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.
The mapproject
function is used for
projection.
# NOT RUN {
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")
# }
Run the code above in your browser using DataLab