## S3 method for class 'sealevel':
plot(x, which=1:3, adorn=NULL,
drawTimeRange=getOption("oceDrawTimeRange"),
mgp=getOption("oceMgp"),
mar=c(mgp[1]+0.5,mgp[1]+1.5,mgp[2]+1,mgp[2]+3/4),
marginsAsImage=FALSE,
debug=getOption("oceDebug"),
...)
"sealevel"
, e.g. as read by
read.sealevel
.which
=1 gives a time-series of sealevel for the entire
data set, which
=2 gives sealevel for just the first 28 days,
which
=3 gives a power spectrpar(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 put a wide margin to the
right of time-series plots, matching the space used up by a palette
in an imagep
plot. Depending on the length of which
, either a single-panel or
multi-panel plot is drawn. If there is just one panel, then the
value of par
used in plot.sealevel
is retained upon
exit, making it convenient to add to the plot. For multi-panel
plots, par
is returned to the value it had before the call,
and so adorn
must be used to add to individual panels.
summary.sealevel
summarizes the information, while
read.sealevel
scans it from a file.library(oce)
data(sealevelHalifax)
# Overall plot
plot(sealevelHalifax)
# Illustrate storm surge during Hurricane Juan
plot(sealevelHalifax,which=1,xlim=as.POSIXct(c("2003-09-24","2003-10-05"), tz="UTC"))
abline(v=as.POSIXct("2003-09-29 04:00:00", tz="UTC"), col="red")
mtext("Hurricane
Juan", at=as.POSIXct("2003-09-29 04:00:00", tz="UTC"), col="red")
Run the code above in your browser using DataLab