Learn R Programming

oce (version 0.9-18)

plot.met: Plot meteorological data

Description

Plot meteorological data

Usage

## S3 method for class 'met':
plot(x,
     which=1:4, 
     mgp=getOption("oceMgp"),
     mar=c(mgp[1]+1,mgp[1]+1,mgp[1]+1,mgp[1]+1),
     tformat,
     debug=getOption("oceDebug"),
     ...)

Arguments

x
A ctd object, e.g. as read by read.met, or a list containing items named salinity and temperature.
which
list of desired plot types.
  • which=1gives a time-series plot of temperature
  • which=2gives a time-series plot of pressure
  • which=3gives a time-series plot of the x (eastward) component of ve
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").
tformat
optional argument passed to oce.plot.ts, for plot types that call that function. (See strptime for the format used.)
debug
set to TRUE to get debugging information during processing.
...
optional arguments passed to plotting functions. A common example is to set df, for use in swN2 calculations.

Details

Creates a multi-panel summary plot of data measured in a meteorological data set. cast. The panels are controlled by the which argument. Normally, 4 panels are specified with the which, but it can also be useful to specify less than 4 panels, and then to draw other panels after this call.

If more than one panel is drawn, then on exit from plot.met, the value of par will be reset to the value it had before the function call. However, if only one panel is drawn, the adjustments to par made within plot.met are left in place, so that further additions may be made to the plot.

See Also

The documentation for met-class explains the structure of met objects, and also outlines the other functions dealing with them.

Examples

Run this code
library(oce)
data(met)
plot(met, which=3:4)

Run the code above in your browser using DataLab