plotTS {oce} | R Documentation |
Plot temperature-salinity diagram for seawater (CTD) data.
plotTS(x, inSitu=FALSE, type="p", referencePressure=0, nlevels=6, levels, grid=TRUE, col.grid="lightgray", lty.grid="dotted", rho1000=FALSE, eos=getOption("oceEOS", default='gsw'), cex=par("cex"), col=par("col"), pch=par("pch"), bg, pt.bg="transparent", col.rho="darkgray", cex.rho=3/4*par("cex"), rotate=TRUE, useSmoothScatter=FALSE, xlab, ylab, Slim, Tlim, mgp=getOption("oceMgp"), mar=c(mgp[1]+1.5,mgp[1]+1.5,mgp[1],mgp[1]), lwd=par('lwd'), lty=par('lty'), lwd.rho=par("lwd"), lty.rho=par("lty"), add=FALSE, inset=FALSE, debug=getOption("oceDebug"), ...)
x |
An object containing salinity and temperature data, typically a
|
inSitu |
A boolean indicating whether to use in-situ temperature or
(the default) potential temperature, calculated with reference pressure
given by |
type |
representation of data, |
referencePressure |
reference pressure, to be used in calculating
potential temperature, if |
nlevels |
Number of automatically-selected isopycnal levels (ignored
if |
levels |
Optional vector of desired isopycnal levels. |
grid |
a flag that can be set to |
col.grid |
colour for grid. |
lty.grid |
line type for grid. |
rho1000 |
if TRUE, label isopycnals as e.g. 1024; if FALSE, label as e.g. 24 |
eos |
equation of state to be used, either |
cex |
character-expansion factor for symbols, as in |
pch |
symbol type, as in |
bg |
optional colour to be painted under plotting area, before plotting.
(This is useful for cases in which |
pt.bg |
inside colour for symbols with |
col |
colour for symbols. |
col.rho |
colour for isopycnal lines. |
cex.rho |
size of isopycnal labels. |
rotate |
if TRUE, labels in right-hand margin are written vertically |
useSmoothScatter |
if TRUE, use |
xlab |
optional label for the x axis, with default "Salinity [PSU]". |
ylab |
optional label for the y axis, with default "Temperature [C]". |
Slim |
optional limits for salinity axis, otherwise inferred from data. |
Tlim |
optional limits for temperature axis, otherwise inferred from data. |
mgp |
3-element numerical vector to use for |
mar |
value to be used with |
lwd |
line width of lines or symbols. |
lty |
line type of lines or symbols. |
lwd.rho |
line width for density curves. |
lty.rho |
line type for density curves. |
add |
a flag that controls whether to add to an existing plot. (It
makes sense to use |
inset |
set to |
debug |
a flag that turns on debugging. Set to 1 to get a moderate amount of debugging information, or to 2 to get more. |
... |
optional arguments passed to plotting functions. |
Creates a temperature-salinity plot for a CTD cast, with labeled isopycnals.
A list is silently returned, containing xat
and yat
,
values that can be used by oce.grid
to add a grid to the
plot.
Dan Kelley
summary.ctd
summarizes the information, while
read.ctd
scans it from a file.
library(oce) data(ctd) plotTS(ctd)