Learn R Programming

oce (version 0.1-76)

plot.coastline: Plot a coastline

Description

Plot a coastline.

Usage

## S3 method for class 'coastline':
plot(x, asp=NA, \dots)

Arguments

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
...
optional arguments passed to plotting functions. For example, set yaxp=c(-90,90,4) for a plot extending from pole to pole.

Value

  • None.

Details

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.

See Also

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.

Examples

Run this code
library(oce)
data(coastline.world)
plot(coastline.world)

Run the code above in your browser using DataLab