| plot.topo {oce} | R Documentation |
Plot contours of topographic data.
## S3 method for class 'topo':
plot(x, water.z, water.colors, land.z,
land.colors, legend.loc="topright", lwd=par("lwd"), ...)
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.colors |
colors corresponding to water.z values. If
not provided, these will be "fill" colors from
gebco.colors. |
land.z |
depths at which to plot land contours. If not provided, these are inferred from the data. |
land.colors |
colors corresponding to land.z values. If
not provided, these will be "fill" colors from
gebco.colors. |
legend.loc |
location for a legend (or FALSE, for no legend). |
lwd |
line width for contours |
... |
additional arguments passed on to plotting functions |
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.
Dan Kelley
TOPO data can be created with read.topo and
summarized with summary.topo.
library(oce) data(topo.maritimes) plot(topo.maritimes)