
Last chance! 50% off unlimited learning
Sale ends in
mapPlot
)
then only longitude
and latitude
should be given, and the
other arguments will be inferred by lonlat2map
. This is important
because otherwise, if a new projection is called for, it will ruin any
additions to the existing plot.
lonlat2map(longitude, latitude, projection = "")
longitude
and latitude
, in which case
the indicated values are used, and next argument is ignored.longitude
is a list, as described above).rgdal
package;
see mapPlot
.)x
and y
.
mapLongitudeLatitudeXY
is a safer alternative, if a map has
already been drawn with mapPlot
, because that function cannot
alter an existing projection. map2lonlat
is an inverse to
map2lonlat
.Other functions related to maps: lonlat2utm
,
map2lonlat
, mapArrows
,
mapAxis
, mapContour
,
mapDirectionField
, mapGrid
,
mapImage
, mapLines
,
mapLocator
,
mapLongitudeLatitudeXY
,
mapPlot
, mapPoints
,
mapPolygon
, mapScalebar
,
mapText
, mapTissot
,
oceCRS
, shiftLongitude
,
utm2lonlat
## Not run:
# library(oce)
# ## Cape Split, in the Minas Basin of the Bay of Fundy
# cs <- list(longitude=-64.49657,latitude=45.33462)
# xy <- lonlat2map(cs, projection="+proj=merc")
# map2lonlat(xy)
# ## End(Not run)
Run the code above in your browser using DataLab