## S3 method for class 'coastline':
plot(x,
asp,
mgp=getOption("oce.mgp"),
mar=c(mgp[1], mgp[1], par("cex"), par("cex")),
bg,
axes=TRUE,
...)
coastline
object, e.g. as read by
read.coastline
or created by
as.coastline
.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, epar(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.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