mapPoints | R Documentation |
Plot points on an existing map, by analogy to points()
.
mapPoints(longitude, latitude, debug = getOption("oceDebug"), ...)
longitude |
Longitudes of points to be plotted, or an object from which
longitude and latitude can be inferred in which case the following two
arguments are ignored. This objects that are possible include those of type
|
latitude |
numeric vector of latitudes of points to be plotted. |
debug |
A flag that turns on debugging. Set to 1 to get a moderate amount of debugging information, or to 2 to get more. |
... |
Optional arguments passed to |
Dan Kelley
A map must first have been created with mapPlot()
.
A map must first have been created with mapPlot()
.
Other functions related to maps:
formatPosition()
,
lonlat2map()
,
lonlat2utm()
,
map2lonlat()
,
mapArrows()
,
mapAxis()
,
mapContour()
,
mapCoordinateSystem()
,
mapDirectionField()
,
mapGrid()
,
mapImage()
,
mapLines()
,
mapLocator()
,
mapLongitudeLatitudeXY()
,
mapPlot()
,
mapPolygon()
,
mapScalebar()
,
mapText()
,
mapTissot()
,
oceCRS()
,
oceProject()
,
shiftLongitude()
,
usrLonLat()
,
utm2lonlat()
library(oce)
data(coastlineWorld)
mapPlot(coastlineWorld,
longitudelim = c(-80, 0), latitudelim = c(20, 50),
col = "lightgray", projection = "+proj=laea +lon_0=-35"
)
data(section)
mapPoints(section)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.