Learn R Programming

oce (version 0.9-19)

mapZones: Add Zones to a Map [DEPRECATED]

Description

Plot zones (lines of constant longitude) on a existing map. Warning: this function will be removed soon; see oce-deprecated.

Usage

mapZones(longitude, polarCircle = 0, lty = "solid", lwd = 0.5 * par("lwd"), col = "darkgray", ...)

Arguments

longitude
either a logical indicating whether to draw a zonal grid, or a vector of longitudes at which to draw zones.
polarCircle
a number indicating the number of degrees of latitude extending from the poles, within which zones are not drawn.
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

Zones 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, mapMeridians, mapPlot, mapPoints, mapPolygon, mapScalebar, mapText, mapTissot, shiftLongitude, utm2lonlat

Examples

Run this code
## Not run: 
# library(oce)
# data(coastlineWorld)
# longitude <- coastlineWorld[['longitude']]
# latitude <- coastlineWorld[['latitude']]
# mapPlot(longitude, latitude, type='l', grid=FALSE,
# longitudelim=c(-80,10), latitudelim=c(0,120),
# projection="orthographic", orientation=c(45,-100,0))
# mapZones()
# ## End(Not run)

Run the code above in your browser using DataLab