Learn R Programming

oce (version 0.1-76)

plot.topo: Plot topography data

Description

Plot contours of topographic data.

Usage

## S3 method for class 'topo':
plot(x, 
  water.z, water.col, water.lty, water.lwd,
  land.z,   land.col,  land.lty,  land.lwd,
  legend.loc="topright", \dots)

Arguments

x
an topo object, e.g. as read by read.topo.
water.z
depths at which to plot water contours. If not provided, these are inferred from the data.
water.col
colors corresponding to water.z values. If not provided, these will be "fill" colors from gebco.colors.
water.lty
line type(s) for water contours
water.lwd
line width(s) for water contours
land.z
depths at which to plot land contours. If not provided, these are inferred from the data.
land.col
colors corresponding to land.z values. If not provided, these will be "fill" colors from gebco.colors.
land.lty
line type(s) for land contours
land.lwd
line width(s) for land contours
legend.loc
location for a legend (or FALSE, for no legend).
...
additional arguments passed on to plotting functions

Details

The plot aspect ratio is set based on the middle latitude in the plot. Be aware that the ETOPO2 data are on a 2-minute (roughly 2-mile) spacing, and coastlines created with such data can be quite inaccurate on scales of 100km or less.

The line properties, such as land.lwd, may either be a single item, or a vector; in the latter case, the length must match the length of the corresponding properties, e.g. land.z.

See Also

TOPO data can be created with read.topo and summarized with summary.topo.

Examples

Run this code
library(oce)
data(topo.maritimes)
plot(topo.maritimes)

Run the code above in your browser using DataLab