plot.argo {oce}R Documentation

Plot argo data

Description

Plot a summary diagram for argo data.

Usage

## S4 method for signature 'argo'
plot(x, which = 1, level,
     coastline=c("best", "coastlineWorld", "coastlineWorldMedium",
                 "coastlineWorldFine", "none"),
     cex=1, pch=1, type='p', col, fill=FALSE,
     adorn=NULL,
     projection=NULL, parameters=NULL, orientation=NULL,
     mgp=getOption("oceMgp"), mar=c(mgp[1]+1.5, mgp[1]+1.5, 1.5, 1.5),
     tformat,
     debug=getOption("oceDebug"), ...)

Arguments

x

A argo object, e.g. as read by read.argo.

which

list of desired plot types.

  • which=1 or which="trajectory" gives a plot of the argo trajectory, with the coastline, if one is provided.

  • which=2 or "salinity ts" gives a time series of salinity at the indicated level(s)

  • which=3 or "temperature ts" gives a time series of temperature at the indicated level(s)

  • which=4 or "TS" gives a TS diagram at the indicated level(s)

  • which=5 or "salinity profile" gives a salinity profile of all the data (with S and p trimmed to the 1 and 99 percentiles)

  • which=6 or "temperature profile" gives a temperature profile (with T and p trimmed to the 1 and 99 percentiles)

level

level to plot, for e.g. which=2 and higher. May be an integer, in which case it refers to an index of depth (1 being the top) or it may be the string "all" which means to plot all data.

coastline

string giving the coastline to be used in an Argo-location map, or "best" to pick the one with highest resolution, or "none" to avoid drawing the coastline.

cex

size of plotting symbols to be used if type='p'.

pch

type of plotting symbols to be used if type='p'.

type

plot type, either "l" or "p".

col

optional list of colours for plotting.

fill

either a logical, indicating whether to fill the land with light-gray, or a colour name. Owing to problems with some projections, the default is not to fill.

adorn

list of expressions to be executed for the panels in turn, e.g. to adorn the plots. If the number matches the number of panels, then the strings are applied to the appropriate panels, as they are drawn from top-left to bottom-right. If only a single expression is provided, it is used for all panels. (See “Examples”.)

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.

projection, parameters, orientation

parameters specifying map projection; see mapPlot. If projection="automatic", however, a projection is devised from the data, with stereographic if the mean latitude exceeds 70N and mollweide otherwise.

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

debugging flag

...

optional arguments passed to plotting functions.

Details

Creates a summary plot for an Argo dataset.

Value

None.

Author(s)

Dan Kelley

References

http://www.argo.ucsd.edu/

See Also

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

Examples

library(oce)
data(argo)
plot(argo, which="trajectory")

[Package oce version 0.9-18 Index]