## S3 method for class 'coastline':
plot(x,
asp,
center, span,
mgp=getOption("oce.mgp"),
mar=c(mgp[1]+1,mgp[1]+1,1,1),
bg,
axes=TRUE,
expand=1.5,
debug=getOption("oce.debug"),
...)
coastline
object, as read by
read.coastline
or created by
as.coastline
, or a list containing items named
latitud
plot.coastline
to set the aspect ratio to give natural
latitude-longitude scaling somewhere near the centre latitude on the
plot. Often, it makes sense to set asp
yourself, espan
.)center
is supplied).par(mgp)
, and
also for par(mar)
, computed from this. The default is
tighter than the R default, in order to use more space for the
data and less for the axes.par("mar")
.TRUE
to plot axes.expand
is ignored if either TRUE
to get debugging information during
processing.yaxp=c(-90,90,4)
for a plot extending from pole
to pole. To get an inset map inside another map, draw the first map, do
par(new=TRUE)
, and then call plot.coastline
with a value
of mar
that moves the inset plot to a desired location on the
existing plot, and with bg="white"
.
read.coastline
can read coastlines from data
files, provided that they are in a certain class of formats. A
coastline may be summarized by summary.coastline
.library(oce)
data(coastline.world)
plot(coastline.world)
Run the code above in your browser using DataLab