## S3 method for class 'ctd':
plot(x,
which=1:4,
ref.lat=NaN,
ref.lon=NaN,
grid=TRUE,
col.grid="lightgray",
lty.grid="dotted",
coastline,
Slim,
Tlim,
plim,
densitylim,
dpdtlim,
timelim,
lonlim,
latlim,
latlon.pch=20,
latlon.cex=1.5,
latlon.col="red",
cex=1,
pch=1,
useSmoothScatter=FALSE,
type='l',
adorn=NULL,
mgp=getOption("oceMgp"),
mar=c(mgp[1]+1,mgp[1]+1,mgp[1]+1,mgp[1]+1),
debug=getOption("oceDebug"),
...)
cdt
object, e.g. as read by read.ctd
, or a
list containing items named salinity
and temperature
.which=1
orwhich="salinity+temperature"
gives
a combined profile of temperature and salinitywhich=2
orwhich="density+N2"
gives a combined
profileTRUE
to get a grid on all plots.coastline
object, e.g. as read by
read.coastline
(ignored if no map plotted).par
)par
).TRUE
to use
smoothScatter
instead of plot
to draw
the plot.plot
.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")
.TRUE
to get debugging information during processing.df
, for use in swN2 calculations.which
argument.
Normally, 4 panels are specified with the which
, but it can
also be useful to specify less than 4 panels, and then to draw other
panels after this call.If only 2 panels are requested, they will be drawn side by side.
If more than one panel is drawn, then on exit from plot.ctd
,
the value of par
will be reset to the value it had before the
function call. However, if only one panel is drawn, the adjustments
to par
made within plot.ctd
are left in place, so that
further additions may be made to the plot.
plot.profile
, and
the TS diagram is plotted with plot.TS
. CTD data can be
created with as.ctd
or read with read.ctd
.
Summaries of CTD data are provided by summary.ctd
.library(oce)
data(ctd)
plot(ctd)
data(coastlineSLE)
lonlim <- -(69 + c(52, 41) / 60)
latlim <- 47 + c(48, 58) / 60
# IAL = Ile aux Lievres
plot(ctd, which=c(1,2,3,5),
coastline=coastlineSLE,
adorn=expression({},{},{},{text(-69.72,47.85,'IAL',pos=4)}))
Run the code above in your browser using DataLab