echogram 0.1.2

echogram 0.1.1

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.