plot(as.ctd(rsk))
if the object contains CTD-like data.
Other times, users should extract data from the rsk
object and
construct plots themselves. The idea is to use the present function mainly
to get an overview, and for that reason, the default plot type (set by
which
) is a set of time-series plots, because the one thing that is
definitely known about rsk
objects is that they contain a
time
vector in their data
slot.## S3 method for class 'rsk':
plot(x,
which="timeseries", title="", adorn=NULL,
tlim, plim, Tlim,
xlab, ylab,
tformat,
drawTimeRange=getOption("oceDrawTimeRange"),
abbreviateTimeRange=getOption("oceAbbreviateTimeRange"),
useSmoothScatter=FALSE,
mgp=getOption("oceMgp"),
mar=c(mgp[1]+1.5,mgp[1]+1.5,1.5,1.5),
main="",
debug=getOption("oceDebug"),
...)
rsk
object, typically result of read.rsk
.which
.which
=2)oce.plot.ts
, for
plot types that call that function. (See strptime
for the
format used.)smoothScatter
to be used for profile plots, instead of
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")
.which=0
or"timeseries"
for time-series plots of each variable;
this over-rides any other specificationwhich=1
or"temperature"
for a time-series plot of temperaturewhich=2
or"text"
for textual information about the datasetwhich=3
or"pressure"
for a time-series plot of pressurewhich=4
or"profile"
for a temperature profilersk-class
explains the
structure of rsk
objects, and also outlines the other functions
dealing with them.library(oce)
data(rsk)
plot(rsk, which=c(1,3))
Run the code above in your browser using DataLab