Learn R Programming

oce (version 0.2-1)

plot.ctd.scan: Plot seawater data in a low-level fashion

Description

Plot CTD data as time-series against scan number, to help with trimming extraneous data from a CTD cast.

Usage

plot.ctd.scan(x, name = "scan", 
 S.col = "darkgreen", T.col= "darkred", p.col = "blue",
 adorn=NULL, mgp=getOption("oceMgp"), ...)

Arguments

x
A cdt object, e.g. as read by read.ctd.
name
name of variable for x axis
S.col
colour for salinity
T.col
colour for temperature
p.col
colour for pressure
adorn
list of character strings containing commands to be executed for the panels. If the number matches the number of panels, then the strings are applied to the appropriate panels, as they are drawn from top-left to bottom-right. If only a sing
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.
...
optional arguments passed to plotting functions.

Details

Plots ctd data as time-series against the scan number, as an aide to trimming to downcasts, etc.

See Also

summary.ctd summarizes a ctd object plot.ctd plot summary diagram of ctd object. read.ctd scans ctd object from a file.

Examples

Run this code
library(oce)
data(ctd) 
plot.ctd.scan(ctd)

# demonstrate adding elements to plots, e.g. to narrow
# down on good start end points
plot.ctd.scan(ctd, adorn="abline(v=240,col='red')")

Run the code above in your browser using DataLab