## S3 method for class 'section':
plot(x,
which=c("salinity", "temperature", "sigmaTheta", "map"),
at=NULL,
labels=TRUE,
grid=FALSE,
contourLevels=NULL,
contourLabels=NULL,
stationIndices,
coastline=NULL,
xlim=NULL,
ylim=NULL,
map.xlim=NULL,
map.ylim=NULL,
xtype="distance",
ytype="depth",
legend.loc="bottomright",
adorn=NULL,
mgp=getOption("oceMgp"),
mar=c(mgp[1]+1, mgp[1]+1, mgp[2], mgp[2] + 0.5),
debug=getOption("oceDebug"),
...)
section
object, e.g. as created by
makeSection
.NULL
(the default), the x axis will indicate the
distance of the stations from the first in the section. (This may
give errors in the contouring routine, if the stations are not present
in a geographical order.) If a list, that
.TRUE
, points are drawn at data locations.station.indices=1:4
.coastline
to be used in a station
mapmap.ylim
, if both are
supplied.)"distance"
for distance (in km) to the first point in the
section, "track"
for distance along the cruise track,
or "longitude"
or "latitude"
.
Not"pressure"
for pressure (in dbar, with zero at the surface)
or "depth"
for depth (in m below the surface, calculated
from pressure with sw
legend
.par(mgp)
, and
also for par(mar)
, computed from this. The default is
tighter than the R default, in order to use more space for the data
and less for the axes.par("mar")
.labcex=1
will increase the size of contour labels.which
. The codes are as follows.
which=1
or"temperature"
for temperature contourswhich=2
or"salinity"
for salinity contourswhich=3
or"sigmaTheta"
for sigma-theta contourswhich=4
or"nitrate"
for nitrate concentration contourswhich=5
or"nitrite"
for nitrite concentration contourswhich=6
or"oxygen"
for oxygen concentration contourswhich=7
or"phosphate"
for phosphate concentration contourswhich=8
or"silicate"
for silicate concentration contourswhich=99
or"map"
for a location mapat
is not supplied, then the
routine calculates x as the distance between the first station in the
section and each of the other stations. (This will produce an error if the
stations are not ordered geographically, because the contour
routine cannot handle non-increasing axis coordinates.) If at
is
specified, then it is taken to be the location, in arbitrary units, along
the x-axis of labels specified by labels
; the way this works is
designed to be the same as for axis
.section-class
explains the
structure of section objects, and also outlines the other functions dealing
with them.library(oce)
# Halifax Harbour
data(section)
data(coastlineHalifax)
plot(section, coastline=coastlineHalifax)
# Gulf Stream
data(a03)
GS <- subset.oce(a03, indices=124:102)
GSg <- sectionGrid(GS, p=seq(0,2000,100))
data(coastlineWorld)
plot(GSg, coastline=coastlineWorld, map.xlim=c(-80,-60))
# Illustate adornment
plot(GSg, coastline=coastlineWorld, map.xlim=c(-80,-60),
adorn=expression({abline(v=200,col='blue')}))
Run the code above in your browser using DataLab