Learn R Programming

oce (version 0.9-18)

plot.argo: Plot argo data

Description

Plot a summary diagram for argo data.

Usage

## S3 method for class '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=1orwhich="trajectory"gives a plot of the argo trajectory, with the coastline, if one is provided.
  • which=2or"salinity ts"gives a time
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-rig
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 mea
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.

Value

  • None.

Details

Creates a summary plot for an Argo dataset.

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

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

Run the code above in your browser using DataLab