oce.contour | R Documentation |
This provides something analogous to contour()
, but with the
ability to flip x and y.
Setting revy=TRUE
can be helpful if the y
data represent
pressure or depth below the surface.
oce.contour(
x,
y,
z,
revx = FALSE,
revy = FALSE,
add = FALSE,
tformat,
drawTimeRange = getOption("oceDrawTimeRange"),
debug = getOption("oceDebug"),
...
)
x |
values for x grid. |
y |
values for y grid. |
z |
matrix for values to be contoured. The first dimension of |
revx |
set to |
revy |
set to |
add |
logical value indicating whether the contours should be added to a pre-existing plot. |
tformat |
time format; if not supplied, a reasonable choice will be
made by |
drawTimeRange |
logical, only used if the |
debug |
a flag that turns on debugging; set to 1 to information about the processing. |
... |
optional arguments passed to plotting functions. |
Dan Kelley
library(oce)
data(topoWorld)
# coastline now, and in last glacial maximum
lon <- topoWorld[["longitude"]]
lat <- topoWorld[["latitude"]]
z <- topoWorld[["z"]]
oce.contour(lon, lat, z, levels = 0, drawlabels = FALSE)
oce.contour(lon, lat, z, levels = -130, drawlabels = FALSE, col = "blue", add = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.