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. |
Plots a coastline.
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)