Plot a summary diagram for argo data.
# S4 method for 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.5, mgp + 1.5, 1.5, 1.5), tformat, debug = getOption("oceDebug"), ... )
an argo object.
list of desired plot types, one of the following. Note
oce.pmatch() is used to try to complete partial
character matches, and that an error will occur if the match is
not complete (e.g.
"salinity" matches to both
"salinity ts" and
which="map" gives a
plot of the argo trajectory, with the coastline, if one is provided.
"salinity ts" gives a time series of
salinity at the indicated level(s)
"temperature ts" gives a time series
of temperature at the indicated level(s)
"TS" gives a TS diagram at the
"salinity profile" gives a salinity
profile of all the data (with S and p trimmed to the 1 and 99
"temperature profile" gives a
temperature profile (with T and p trimmed to the 1 and 99
depth pseudo-level to plot, for
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.
character string giving the coastline to be used in an Argo-location
"best" to pick the one with highest resolution, or
"none" to avoid drawing the coastline.
size of plotting symbols to be used if
type of plotting symbols to be used if
plot type, either
optional list of colors for plotting.
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.
indication of the projection to be used
in trajectory maps. If this is
NULL, no projection is used, although
the plot aspect ratio will be set to yield zero shape distortion at the
mean float latitude. If
projection="automatic", then one
of two projections is used: stereopolar (i.e.
X is the mean longitude), or Mercator (i.e.
projection must be a character string specifying
a projection in the notation used by
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.
value to be used with
optional arguments passed to plotting functions.
Other things related to argo data:
Other functions that plot oce data:
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))