R: Plot a Tidem Prediction

plot,tidem-method {oce} | R Documentation

## Plot a Tidem Prediction

### Description

Plot a summary diagram for a tidal fit.

### Usage

    ## S4 method for signature 'tidem'
    plot(x, which = 1, constituents = c("SA", "O1", "K1",
      "M2", "S2", "M4"), sides = NULL, col = "blue", log = "",
      mgp = getOption("oceMgp"), mar = c(mgp[1] + 1, mgp[1] + 1, mgp[2] + 0.25,
      mgp[2] + 1), ...)

### Arguments

`x` | A `tidem` object, i.e. one inheriting from `tidem-class`.
`which` | integer flag indicating plot type, 1 for stair-case spectral, 2 for spike spectral.
`constituents` | a character vector of constituents that are to be drawn and label. If `NULL`, then no constituents will be shown. Consult the built-in dataset `tidedata` for the permissible constituent names and their frequencies.
`sides` | an integer vector of length equal to that of `constituents`, designating the side on which the constituent labels are to be drawn. As in all R graphics, the value `1` indicates the bottom of the plot, and `3` indicates the top. If `sides=NULL`, the default, then all labels are drawn at the top. Any value of `sides` that is not either 1 or 3 is converted to 3.
`col` | a character vector naming colours to be used for `constituents`. Ignored if `sides=3`. Repeated to be of the same length as `constituents`, otherwise.
`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.

### Historical note

An argument named `labelIf` was removed in July 2016, because it was discovered never to have worked as documented, and because the more useful argument `constituents` had been added.

### Author(s)

Dan Kelley

### See Also

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,sealevel-method`, `plot,section-method`, `plot,topo-method`, `plot,windrose-method`, `plotProfile`, `plotScan`, `plotTS`, `tidem-class`

Other things related to `tidem` data: `[[,tidem-method`, `[[<-,tidem-method`, `predict.tidem`, `summary,tidem-method`, `tidedata`, `tidem-class`, `tidemAstron`, `tidemVuf`, `tidem`

### Examples

    ## Not run:
    library(oce)
    data(sealevel)
    tide <- tidem(sealevel)
    plot(tide)

    ## End(Not run)

[Package oce version 0.9-20 Index]