| plot.tidem {oce} | R Documentation |
Plot a summary diagram for a tidal fit.
## S3 method for class 'tidem':
plot(x, label.if=NULL,
plot.type=c("staircase", "spikes"),
log="",
mgp=getOption("oce.mgp"),
mar=c(mgp[1]+1,mgp[1]+1,mgp[2]+0.25,mgp[2]+1),
...)
x |
a tidem object, as created by tidem. |
label.if |
if NULL, the function will indicate some particular tidal constituents; if a value is provided, labels will be given for any constituent with amplitude exceeding the value provided. |
plot.type |
character string indicating the plot type. The
"staircase" style shows a cumulative representation, in which
rising portions indicate the energy in the tidal constituents. The
"spike" style is in the more conventional spectral form. If
a large number of constituents is being used, the staircase
style can be simpler to read at a glance. |
log |
if set to "x", the frequency axis will be
logarithmic. |
mgp |
3-element numerical vector to use for 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. |
mar |
value to be used with par("mar"). |
... |
optional arguments passed to plotting functions. |
Creates a plot for a "tidem" object. See
tidem for examples.
Dan Kelley
tidem fits a "tidem" object, and
summary.tidem summarizes such an object.
library(oce) data(sealevel.hal) tide <- tidem(sealevel.hal) plot(tide)