plot.coastline {oce} | R Documentation |
Plot a coastline.
## S3 method for class 'coastline': plot(x, asp=NA, ...)
x |
A coastline object, e.g. as read by
read.coastline or created by
as.coastline . |
asp |
Aspect ratio for plot. The default is for
plot.coastline to set the aspect ratio to give natural
latitude-longitude scaling at the average latitude in the data range.
In most cases, you will probably want to set asp yourself,
e.g. coastal shapes near 45N will have the correct shape if you set
asp=1/cos(45*pi/180) . Setting asp=1 makes sense for
world views. |
... |
optional arguments passed to plotting functions. For
example, set yaxp=c(-90,90,4) for a plot extending from pole to
pole. |
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.
None.
Dan Kelley
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)