mapLines(longitude, latitude, greatCircle=FALSE, ...)
mapLocator
), in which case the
lines
.lines
.mapPlot
for general information on plotting maps,
including other functions.library(oce)
data(coastlineWorld)
longitude <- coastlineWorld[['longitude']]
latitude <- coastlineWorld[['latitude']]
mapPlot(longitude, latitude, type='l',
longitudelim=c(-80,10), latitudelim=c(0,120),
projection="orthographic", orientation=c(45,-100,0))
lon <- c(-63.5744, 0.1062) # Halifax CA to London UK
lat <- c(44.6479, 51.5171)
mapLines(lon, lat, col='red')
Run the code above in your browser using DataLab