Learn R Programming

oce (version 0.2-1)

plot.profile: Plot a CTD profile of various quantities

Description

Plot a CTD profile, in any of several common formats.

Usage

plot.profile(x,
             xtype="S", 
             ytype=c("pressure", "z"),
             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,
             xaxs="r", yaxs="r",
             cex=1,
             useSmoothScatter=FALSE,
             mgp=getOption("oceMgp"),
             mar=c(mgp[1]+1, mgp[1]+1, mgp[1] + 1.5, 1),
...)

Arguments

x
A cdt object, e.g. as read by read.ctd.
xtype
Type of profile to plot, from the list below. [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ytype
variable to use on y axis.
col.salinity
Color for salinity profile.
col.temperature
Color for temperature.
col.rho
Color for density.
col.N2
Color for square of buoyancy frequency.
col.dpdt
Color for dP/dt.
col.time
Color for delta-time.
grid
logical, set to TRUE to get a grid.
col.grid
colour for grid.
lty.grid
line type for grid.
Slim
Optional limit for S axis
Tlim
Optional limit for T axis
densitylim
Optional limit for density axis
N2lim
Optional limit for N2 axis
dpdtlim
Optional limit for dp/dt axis
timelim
Optional limit for delta-time axis
ylim
Optional limit for y axis
lwd
lwd value for data line
xaxs
value of par xaxs to use
yaxs
value of par yaxs to use
cex
size of symbols
useSmoothScatter
boolean, set to TRUE to use smoothScatter instead of plot to draw the plot.
mgp
3-element numerical vector to use for 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.
mar
value to be used with par("mar").
...
Optional arguments passed to other functions. A common example is to set df, for use in swN2 calculations.

Value

  • None.

See Also

read.ctd scans ctd information from a file, and plot.TS plots a temperature-salinity diagram.

Examples

Run this code
library(oce)
data(ctd)
plot.profile(ctd, xtype="T")

Run the code above in your browser using DataLab