Learn R Programming

oce (version 0.1-80)

plot.tidem: Plot a tidal fit

Description

Plot a summary diagram for a tidal fit.

Usage

## 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),
     ...)

Arguments

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 convention
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.

Details

Creates a plot for a "tidem" object. See tidem for examples.

See Also

tidem fits a "tidem" object, and summary.tidem summarizes such an object.

Examples

Run this code
library(oce)
data(sealevel.hal)
tide <- tidem(sealevel.hal)
plot(tide)

Run the code above in your browser using DataLab