Learn R Programming

oce (version 0.9-17)

plot.drifter: Plot drifter data

Description

Plot a summary diagram for drifter data.

Usage

## S3 method for class 'drifter':
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 drifter object, e.g. as read by read.drifter.
which
list of desired plot types.
  • which=1orwhich="trajectory"gives a plot of the drifter trajectory, with the coastline, if one is provided.
  • which=2or"salinity ts"gives a t
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 a drifter-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 color 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 a drifter dataset.

References

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

See Also

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

Examples

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

Run the code above in your browser using DataLab