plotProfile(x,
xtype="salinity+temperature",
ytype=c("pressure", "z", "depth", "sigmaTheta"),
eos=getOption("oceEOS", default="gsw"),
xlab=NULL, ylab=NULL,
col="black",
col.salinity="darkgreen",
col.temperature="red",
col.rho="blue",
col.N2="brown",
col.dpdt="darkgreen",
col.time="darkgreen",
pt.bg="transparent",
grid=TRUE,
col.grid="lightgray",
lty.grid="dotted",
Slim, Clim, Tlim, densitylim, N2lim, Rrholim, dpdtlim, timelim, ylim,
lwd=par("lwd"),
xaxs="r", yaxs="r",
cex=1, pch=1,
useSmoothScatter=FALSE,
df,
keepNA=FALSE,
type='l',
mgp=getOption("oceMgp"),
mar=c(1 + if (length(grep('\\+', xtype))) mgp[1] else 0,
mgp[1]+1.5, mgp[1]+1.5, mgp[1]),
add=FALSE, inset=FALSE,
debug=getOption("oceDebug"),
...)ctd object, e.g. as read by read.ctd.x@data$pressure or a text code from the list below.
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[objz is the negative
of depth."unesco" or
"gsw"."" to prevent labelling
the axis.pch in 21:25TRUE to get a grid.par xaxs to usepar yaxs to usepar)par).TRUE to use
smoothScatter instead of plot to draw
the plot.swN2 if provided, and
if a plot using $N^2$ is requested.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").add=TRUE in the panel argument of a
coplot, for example.)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 df, 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