plotProfile {oce} | R Documentation |
Plot a profile, showing variation of some quantity (or quantities)
with pressure, using the oceanographic convention of putting lower pressures
nearer the top of the plot. This works for any oce
object that has a
pressure column in its data
slot.
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"), ...)
x |
A |
xtype |
Item(s) plotted on the x axis, either a vector of length equal
to that of
|
ytype |
variable to use on y axis; note that |
eos |
equation of state to be used, either |
xlab |
optional label for x axis (at top of plot). |
ylab |
optional label for y axis. Set to |
lty |
line type for the profile. |
col |
colour for a general profile. |
col.salinity |
colour for salinity profile (see “Details”). |
col.temperature |
colour for temperature (see “Details”). |
col.rho |
colour for density (see “Details”). |
col.N2 |
colour for square of buoyancy frequency (see “Details”). |
col.dpdt |
colour for dP/dt. |
col.time |
colour for delta-time. |
pt.bg |
inside colour for symbols with |
grid |
logical, set to |
col.grid |
colour for grid. |
lty.grid |
line type for grid. |
Slim |
Optional limit for S axis |
Clim |
Optional limit for conductivity axis |
Tlim |
Optional limit for T axis |
densitylim |
Optional limit for density axis |
N2lim |
Optional limit for N2 axis |
Rrholim |
Optional limit for Rrho axis |
dpdtlim |
Optional limit for dp/dt axis |
timelim |
Optional limit for delta-time axis |
plim |
Optional limit for pressure axis, ignored unless
|
ylim |
Optional limit for y axis, which can apply to any plot type,
although is overridden by |
lwd |
lwd value for data line |
xaxs |
value of |
yaxs |
value of |
cex |
size to be used for plot symbols (see |
pch |
code for plotting symbol (see |
useSmoothScatter |
boolean, set to |
df |
optional argument, passed to |
keepNA |
FALSE |
type |
type of plot to draw, using the same scheme as
|
mgp |
3-element numerical vector to use for |
mar |
value to be used with |
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 other functions. A common example
is to set |
The colours (col.salinity
, etc.) are ony used if two profiles
appear on a plot.
None.
Dan Kelley
read.ctd
scans ctd information from a file,
plot.ctd
is a general plotting function for ctd
objects,
and plotTS
plots a temperature-salinity diagrams.
library(oce) data(ctd) plotProfile(ctd, xtype="temperature")