plines {autoimage}R Documentation

Projected lines function

Description

plines takes coordinates and joins the corresponding points with line segments, possibly after projection.

Usage

plines(x, y = NULL, type = "l", proj, ...)

Arguments

x

coordinate vectors of points to join.

y

coordinate vectors of points to join.

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 (see par) may also be supplied as arguments, particularly, line type, lty, line width, lwd, color, col and for type = "b", pch. Also the line characteristics lend, ljoin and lmitre.

Details

The mapproject function is used for projection.

See Also

pimage, mapproject, lines

Examples

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 national boundaries
data(worldMapEnv, package = "maps")
worldpoly <- maps::map("world", plot = FALSE)
# add boundaries to existing plot
plines(worldpoly, proj = "bonne")

[Package autoimage version 2.2.3 Index]