Learn R Programming

oce (version 0.9-19)

mapMeridians: Add Meridians on a Map [DEPRECATED]

Description

Plot meridians (lines of constant latitude) on an existing map. Warning: this function will be removed soon; see oce-deprecated.

Usage

mapMeridians(latitude, lty = "solid", lwd = 0.5 * par("lwd"), col = "darkgray", ...)

Arguments

latitude
either a logical value indicating whether to draw a meridian grid, or a vector of latitudes at which to draw meridians.
lty
line type.
lwd
line width.
col
line colour.
...
optional arguments passed to lines.

Bugs

This should use approx to fill in multiple segments within the line, so that e.g. great circle lines will be curved.

Details

Meridians that will not fit in the plotting space are ignored.

See Also

A map must first have been created with mapPlot.

Other functions related to maps: lonlat2map, lonlat2utm, map2lonlat, mapArrows, mapAxis, mapContour, mapDirectionField, mapGrid, mapImage, mapLines, mapLocator, mapLongitudeLatitudeXY, mapPlot, mapPoints, mapPolygon, mapScalebar, mapText, mapTissot, mapZones, shiftLongitude, utm2lonlat

Examples

Run this code
## Not run: 
# library(oce)
# data(coastlineWorld)
# longitude <- coastlineWorld[['longitude']]
# latitude <- coastlineWorld[['latitude']]
# mapPlot(longitude, latitude, type='l',
# longitudelim=c(-130,-50), latitudelim=c(30,60),
# proj="polyconic", orientation=c(90, -90, 0))
# mapMeridians()
# ## End(Not run)

Run the code above in your browser using DataLab