plot.TS {oce} | R Documentation |
Plot temperature-salinity diagram for seawater (CTD) data.
plot.TS(x, rho.levels = 6, grid = FALSE, col.grid = "lightgray", rho1000 = FALSE, col = par("col"), col.rho = "darkgray", cex.rho = 0.8*par("cex"), cex = par("cex"), pch = 20, ...)
x |
A cdt object, e.g. as read by read.ctd . |
rho.levels |
Either a list of density levels for which to draw
isopycnal lines, or a suggestion for the number of levels.
In the latter case, pretty() is used to select levels. |
grid |
a flag that can be set to TRUE to get a grid. |
col.grid |
color of grid. |
rho1000 |
if TRUE, label isopycnals as e.g. 1024; if FALSE, label as e.g. 24 |
col |
colour for symbols. |
col.rho |
colour for isopycnal lines. |
cex.rho |
size of isopycnal labels. |
cex |
size of symbols on graph. |
pch |
code for symbols on graph. |
... |
optional arguments passed to plotting functions. |
Creates a temperature-salinity plot for a CTD cast, with labeled isopycnals.
None.
Dan Kelley Dan.Kelley@Dal.Ca
summary.ctd
summarizes the information, while
read.ctd
scans it from a file.
## Not run: library(oce) profile <- read.ctd("/usr/local/lib/R/library/oce/demo/ctdprofile.cnv") attach(profile) plot.TS(profile) # North Atlantic thermocline water, mixing to Antarctic Intermediate Water # (after Defant's analysis) N <- 10 Srange <- c(34.15, 35.94) Trange <- c(3.3,18) SS <- Srange[1] + (Srange[2] - Srange[1]) *(1:N)/(N-1) + 0.01*rnorm(N) TT <- Trange[1] + (Trange[2] - Trange[1]) *(1:N)/(N-1) + 0.01*rnorm(N) plot.TS(as.CTD(S=SS, T=TT, p=0)) ## End(Not run)