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.
"plot"(x, which = 1, beam = "a", newx, xlab, ylab, xlim, ylim, zlim, type = "l", col = oce.colorsJet, lwd = 2, despike = FALSE, drawBottom, ignore = 5, drawTimeRange = FALSE, drawPalette = TRUE, radius, coastline, adorn = NULL, mgp = getOption("oceMgp"), mar = c(mgp[1] + 1, mgp[1] + 1, mgp[1] + 1, mgp[1] + 1), atTop, labelsTop, tformat, 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"
gives a
map showing the cruise track. In the image plots, the display is of
log10
of amplitude, trimmed to zero for any amplitude values
less than 1 (including missing values, which equal 0). Add 10 to the
numeric codes to get the secondary data (non-existent for single-beam files,"a"
. For dual-beam data, this may
be "a"
for the narrow-beam signal, or "b"
for the wide-beam
signal. For split-beam data, this may be "a"
for amplitude,
"b"
for x-angle data, or "c"
for y-angle data.which=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
approx
.which
."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
is a colour, then that colour is used, instead of
white. The bottom is detected with findBottom
, using the
ignore
value described next.drawBottom=TRUE
.TRUE
, the time range will be drawn at the
top. Ignored except for which=2
, i.e. distance-depth plots.TRUE
, the palette will be drawn.which=3
or
which="map"
.which=3
or
which="map"
.expression
or vector of expressions that contain
R code that is to be executed immediately after each panel of the plot.
If the number of expressions matches the number of panels, then the
expressions are used for the corresponding panels; otherwise, the
expression list is extended to match the number of panels (i.e.
to obtain length(which)
elements). Note that adorn
is a dangerous argument, because if the expressions contained
therein set up local storage, there is a chance of entirely
disrupting the plotting. For this reason, adorn
was
marked as defunct in June 2016, and will be removed entirely
after the July CRAN release. Users with existing code that uses
adorn
should simply plot the panels individually, and
use conventional R functions, e.g. lines
etc.,
after each panel, to achieve the desired effect. (See
oce-defunct
for notes on other deprecated or
defunct oce
features.)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")
.which=2
. If labelsTop
is provided, then it
will hold the labels. If labelsTop
is not provided, the labels will
be constructed with the format
function, and these may be
customized by supplying a format
in the ... arguments.atTop
times. Ignored unless atTop
was provided.radius
.xat
and yat
,
values that can be used by oce.grid
to add a grid to the plot.
echosounder
data: [[,echosounder-method
,
[[<-,echosounder-method
,
as.echosounder
,
echosounder-class
,
echosounder
, findBottom
,
read.echosounder
,
subset,echosounder-method
,
summary,echosounder-method
## Not run:
# library(oce)
# data(echosounder)
# plot(echosounder, which=c(1,2), drawBottom=TRUE)
# ## End(Not run)
Run the code above in your browser using DataLab