oce
object that has a
pressure column in its data
slot.
The colours (col.salinity
, etc.) are ony used if two profiles appear
on a plot.
plotProfile(x, xtype = "salinity+temperature", ytype = c("pressure", "z", "depth", "sigmaTheta"), eos = getOption("oceEOS", default = "gsw"), lty = 1, 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, plim, 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, i.e. one inheriting from ctd-class
.pressure
in the data
slot,
or a text code from the list below.
ctdTrim
).swN2
with
an optional argument setting of df=length(x[["pressure"]])/4
to do
some smoothing.time
column in the data
slot, or a sample.rate
in the
metadata
slot. xlab
.z
is the negative
of depth
."unesco"
or
"gsw"
.""
to prevent
labelling the axis.pch
in 21:25TRUE
to get a grid.ytype=="pressure"
, in which case it takes precedence over
ylim
.plim
if ytype=="pressure"
.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)
prior to the plot.
Note that the default value has enough margin space at the top
for an axis (in the oceanographic convention) but the bottom margin will
be too thin for an axis, if the value of which
indicates a univariate
plot (e.g. which="salinity"
, as opposed to
which="salinity+temperature"
). In such cases, any subsequent plots
will have a par(mar)[1]
value that will be too small to fit an
an axis. A good solution is to simply transfer the existing (presumed
acceptable) mar
value, by using mar=par("mar")
.add=TRUE
in the panel
argument of a
coplot
, for example.)TRUE
will prevent the present function from adjusting
the margins, which is
necessary because margin adjustment is the basis for the method used by
plotInset
.df
, for use in swN2 calculations.read.ctd
scans ctd information from a file,
plot,ctd-method
is a general plotting function for ctd
objects, and plotTS
plots a temperature-salinity diagrams.Other functions that plot oce
data: plot,adp-method
,
plot,adv-method
,
plot,amsr-method
,
plot,argo-method
,
plot,bremen-method
,
plot,cm-method
,
plot,coastline-method
,
plot,ctd-method
,
plot,gps-method
,
plot,ladp-method
,
plot,lisst-method
,
plot,lobo-method
,
plot,met-method
,
plot,odf-method
,
plot,rsk-method
,
plot,satellite-method
,
plot,sealevel-method
,
plot,section-method
,
plot,tidem-method
,
plot,topo-method
,
plot,windrose-method
,
plotScan
, plotTS
,
tidem-class
Other things related to ctd
data: [[,ctd-method
,
[[<-,ctd-method
, as.ctd
,
cnvName2oceName
, ctd-class
,
ctdAddColumn
, ctdDecimate
,
ctdFindProfiles
, ctdRaw
,
ctdTrim
, ctdUpdateHeader
,
ctd
, gps-class
,
handleFlags,ctd-method
,
plot,ctd-method
, plotScan
,
plotTS
, read.ctd.itp
,
read.ctd.odf
, read.ctd.sbe
,
read.ctd.woce.other
,
read.ctd.woce
, read.ctd
,
subset,ctd-method
,
summary,ctd-method
,
woceNames2oceNames
, write.ctd
library(oce)
data(ctd)
plotProfile(ctd, xtype="temperature")
Run the code above in your browser using DataLab