This function plots a coastline. An attempt is made to fill the space of the plot, and this is done by limiting either the longitude range or the latitude range, as appropriate, by modifying the eastern or northern limit, as appropriate.
# S4 method for coastline plot( x, xlab = "", ylab = "", showHemi = TRUE, asp, clongitude, clatitude, span, lonlabels = TRUE, latlabels = TRUE, projection = NULL, expand = 1, mgp = getOption("oceMgp"), mar = c(mgp + 1, mgp + 1, 1, 1), bg, fill, type = "polygon", border = NULL, col = NULL, axes = TRUE, cex.axis = par("cex.axis"), add = FALSE, inset = FALSE, geographical = 0, longitudelim, latitudelim, debug = getOption("oceDebug"), ... )
a coastline object.
label for x axis
label for y axis
logical indicating whether to show the hemisphere in axis tick labels.
Aspect ratio for plot. The default is for
optional center latitude of map, in decimal
degrees. If both
optional suggested diagonal span of the plot, in kilometers.
The plotted span is usually close to the suggestion, although the details
depend on the plot aspect ratio and other factors, so some adjustment may be
required to fine-tune a plot. A value for
optional vectors of longitude and latitude to
label on the sides of plot, passed to
optional map projection to use (see
numerical factor for the expansion of plot limits, showing
area outside the plot, e.g. if showing a ship track as a coastline, and then
an actual coastline to show the ocean boundary. The value of
value to be used with
optional color to be used for the background of the map. This comes in handy for drawing insets (see “details”).
a legacy parameter that will be permitted only temporarily; see “History”.
indication of type; may be
color used to indicate land (if
either the color for filling polygons (if
boolean, set to
value for axis font size factor.
boolean, set to
flag indicating the style of axes. If
optional arguments passed to plotting functions. For example,
projection are all given,
then these arguments are passed to
mapPlot() to produce the plot.
(The call uses
col, and uses
border directly.) If the results need further customization,
users should use
projection is provided without
mapPlot() is still called, but
latitudelim are computed from
projection is not provided, much simpler plots are produced. These are
Cartesian, with aspect ratio set to minimize shape distortion at the central latitude.
Although these are crude, they have the benefit of always working, which cannot
be said of true map projections, which can be problematic in various ways owing
to difficulties in inverting projection calculations.
To get an inset map inside another map, draw the first map, do
(new=TRUE), and then call
plot,coastline-method() with a value of
mar that moves the inset plot to a desired location on the existing
plot, and with
Until February, 2016,
plot,coastline-method relied on a
fill to control colors;
col is to be
used now, instead. Also, in February, 2016, the arguments named
orientation were both removed, as they had
become nonfunctional about a year previously, in the transition to using
rgdal package to carry out map projections.
The documentation for the coastline class explains the structure of coastline objects, and also outlines the other functions dealing with them.
Other functions that plot oce data:
Other things related to coastline data: