mapLines {oce} | R Documentation |
Plot lines on an existing map
mapLines(longitude, latitude, greatCircle=FALSE, ...)
longitude |
longitudes of points to be plotted, or an object from
which longitude and latitude can be inferred (e.g. a coastline file, or
the return value from |
latitude |
latitudes of points to be plotted |
greatCircle |
logical indicating whether to render line segments as great circles. (Ignored at present.) |
... |
optional arguments passed to |
Adds lines to an existing map, by analogy to lines
.
Dan Kelley
See mapPlot
for general information on plotting maps,
including other functions.
## Not run: library(oce) data(coastlineWorld) mapPlot(coastlineWorld, type='l', longitudelim=c(-80,10), latitudelim=c(0,120), projection="+proj=ortho +lon_0=-40") lon <- c(-63.5744, 0.1062) # Halifax CA to London UK lat <- c(44.6479, 51.5171) mapPoints(lon, lat, col='red') mapLines(lon, lat, col='red') ## End(Not run)