Functions using statements: if (class(x) == “foo”) were modified to if(inherits(x, “foo”)) to correct errors with R-4.x.x.
In function echogram, label added to color bar: Sv (dB re 1 m^{-1}). Also, options to change the axes annotations and labels now work (cex.axis, cex.lab…).
Corrected a bug produced when merging echograms. The time zone of the ping time was changed to local time, because the behavior of c() function is to remove all attributes except names.
In echogram(), the default value for ‘xref’ is now the ping number, which solves the issue with sample.echogram() returning incorrect values when selecting pixels from the echogram. Also, the labels in the vertical axis (depths) are now correct. The echogram’s main title is now by default the acoustic frequency. Finally, image.scale() code included in echogram() has been updated to imageScale() function from sinkr package by Marc Taylor (see ?echogram).
The sample.echogram() function now opens a new graphics device (with dev.new). Sampled pixels are marked immediatly after selection. The code of the internal function reshape.echogram() now takes into account the ping number as reference.