## S3 method for class 'echosounder':
plot(x,
which=1,
newx, xlab="",
xlim, ylim, zlim,
type="l", col=oceColorsJet, lwd=2,
despike=FALSE,
drawBottom, ignore=5,
radius, coastline,
adorn=NULL,
mgp=getOption("oceMgp"),
mar=c(mgp[1]+1,mgp[1]+1,mgp[1]+1,mgp[1]+1),
debug=getOption("oceDebug"),
...)
echosounder
object, e.g. as read by
read.echosounder
, or created by
as.echosounder
.which=1
or which="zt
image"
gives a z-time image, which=2
or which="zx image"
gives a z-distance image, and which=3
or which="map"
giwhich=1
, instead of time. This must be of the same length as the
time vector, because the image is remapped from time to newx
using
"l"
for line, "p"
for points, or
"b"
for both.type="p"
)smooth
to smooth
across image columns, row by row.TRUE
,
then the bottom is inferred as a smoothed version of the ridge of highest
image value, and data below that are grayed out after the image is drawn.
If drawBottom
drawBottom=TRUE
.which=3
or
which="map"
.which=3
or
which="map"
.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")
.radius
.newx
value is
specifie with the which=2
method, but arguably a gridding method
should be used, and this may be added in the future.echosounder-class
explains the
structure of echosounder objects, and also outlines the other functions
dealing with them.library(oce)
d <- read.oce("/data/archive/sleiwex/2008/fielddata/2008-07-01/Merlu/Biosonics/20080701_163942.dt4")
data(coastlineSLE)
plot(d, which=c(1,3), coastline=coastlineSLE, radius=2, drawBottom=TRUE)
Run the code above in your browser using DataLab