plotProfile(x,
xtype="salinity+temperature",
ytype=c("pressure", "z", "sigmaTheta"),
eos=getOption("eos", default='unesco'),
xlab=NULL, ylab=NULL,
col.salinity="darkgreen",
col.temperature="red",
col.rho="blue",
col.N2="brown",
col.dpdt="darkgreen",
col.time="darkgreen",
grid=TRUE,
col.grid="lightgray",
lty.grid="dotted",
Slim, Tlim, densitylim, N2lim, dpdtlim, timelim, ylim,
lwd=par("lwd"),
xaxs="r", yaxs="r",
cex=1, pch=1,
useSmoothScatter=FALSE,
keepNA=FALSE,
type='l',
mgp=getOption("oceMgp"),
mar=c(1 + if (length(grep('\\+', xtype))) mgp[1] else 0, mgp[1]+2, mgp[1] + 2, 2),
inset=FALSE,
debug=getOption("oceDebug"),
...)cdt object, e.g. as read by read.ctd."unesco" or
"teos". If the latter, then the computer must have the TEOS
library installed; see teos.TRUE to get a grid.par xaxs to usepar yaxs to usepar)par).TRUE to use
smoothScatter instead of plot to draw
the plot.plot.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.par("mar").TRUE for use within plotInset. The
effect is to prevent the present function from adjusting margins, which
is necessary because margin adjustment is the basis for the methdf, for use in swN2 calculations.col.salinity, etc.) are ony used if two profiles
appear on a plot.read.ctd scans ctd information from a file, and
plotTS plots a temperature-salinity diagram.library(oce)
data(ctd)
plotProfile(ctd, xtype="temperature")Run the code above in your browser using DataLab