Learn R Programming

oce (version 0.1-75)

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 yourself, e
...
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

Plots a coastline.

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