plot,argo-method {oce} | R Documentation |
Plot an argo Object
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 = 1,
fill = FALSE,
projection = NULL,
mgp = getOption("oceMgp"),
mar = c(mgp[1] + 1.5, mgp[1] + 1.5, 1.5, 1.5),
tformat,
debug = getOption("oceDebug"),
...
)
Arguments
x |
an argo object. |
which |
list of desired plot types, one of the following. Note
that
|
level |
depth pseudo-level to plot, for |
coastline |
character string giving the coastline to be used in an Argo-location
map, or |
cex |
size of plotting symbols to be used if |
pch |
type of plotting symbols to be used if |
type |
plot type, either |
col |
optional list of colors 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. |
projection |
indication of the projection to be used
in trajectory maps. If this is |
mgp |
3-element numerical vector to use for |
mar |
value to be used with |
tformat |
optional argument passed to |
debug |
debugging flag. |
... |
optional arguments passed to plotting functions. |
Value
None.
Author(s)
Dan Kelley
See Also
Other things related to argo data:
[[,argo-method
,
[[<-,argo-method
,
argo-class
,
argoGrid()
,
argoNames2oceNames()
,
argo
,
as.argo()
,
handleFlags,argo-method
,
read.argo.copernicus()
,
read.argo()
,
subset,argo-method
,
summary,argo-method
Other functions that plot oce data:
download.amsr()
,
plot,adp-method
,
plot,adv-method
,
plot,amsr-method
,
plot,bremen-method
,
plot,cm-method
,
plot,coastline-method
,
plot,ctd-method
,
plot,gps-method
,
plot,ladp-method
,
plot,landsat-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,tidem-method
,
plot,topo-method
,
plot,windrose-method
,
plot,xbt-method
,
plotProfile()
,
plotScan()
,
plotTS()
,
tidem-class
Examples
library(oce)
data(argo)
tc <- cut(argo[["time"]], "year")
# Example 1: plot map, which reveals float trajectory.
plot(argo, pch = as.integer(tc))
year <- substr(levels(tc), 1, 4)
data(topoWorld)
contour(topoWorld[["longitude"]], topoWorld[["latitude"]],
topoWorld[["z"]],
add = TRUE
)
legend("bottomleft", pch = seq_along(year), legend = year, bg = "white", cex = 3 / 4)
# Example 2: plot map, TS, T(z) and S(z). Note the use
# of handleFlags(), to skip over questionable data.
plot(handleFlags(argo), which = c(1, 4, 6, 5))