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-method 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.
"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."all" for a time-series of all the data, 2 or
"month" for a time-series of just the first month, 3 or
"spectrum" for a power spectrum (truncated to frequencies below 0.1
cycles per hour, or 4 or "cumulativespectrum" for a cumulative
integral of the power spectrum.expression or vector of expressions that contain
R code that is to be executed immediately after each panel of the plot.
If the number of expressions matches the number of panels, then the
expressions are used for the corresponding panels; otherwise, the
expression list is extended to match the number of panels (i.e.
to obtain length(which) elements). Note that adorn
is a dangerous argument, because if the expressions contained
therein set up local storage, there is a chance of entirely
disrupting the plotting. For this reason, adorn was
marked as defunct in June 2016, and will be removed entirely
after the July CRAN release. Users with existing code that uses
adorn should simply plot the panels individually, and
use conventional R functions, e.g. lines etc.,
after each panel, to achieve the desired effect. (See
oce-defunct for notes on other deprecated or
defunct oce features.)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 put a wide margin to the right
of time-series plots, matching the space used up by a palette in an
imagep plot.sealevel-class explains the
structure of sealevel objects, and also outlines the other functions dealing
with them.Other functions that plot oce data: plot,adp-method,
plot,adv-method,
plot,amsr-method,
plot,argo-method,
plot,bremen-method,
plot,cm-method,
plot,coastline-method,
plot,ctd-method,
plot,gps-method,
plot,ladp-method,
plot,lisst-method,
plot,lobo-method,
plot,met-method,
plot,odf-method,
plot,rsk-method,
plot,satellite-method,
plot,section-method,
plot,tidem-method,
plot,topo-method,
plot,windrose-method,
plotProfile, plotScan,
plotTS, tidem-class
Other things related to sealevel data: [[,sealevel-method,
[[<-,sealevel-method,
as.sealevel, read.sealevel,
sealevel-class,
sealevelTuktoyaktuk,
sealevel,
subset,sealevel-method,
summary,sealevel-method
library(oce)
data(sealevel)
## local Halifax time is UTC + 4h; see [2] on timing
juan <- as.POSIXct("2003-09-29 00:15:00", tz="UTC")+4*3600
plot(sealevel, which=1, xlim=juan+86400*c(-7,7))
abline(v=juan, col='red')
Run the code above in your browser using DataLab