| echogram {echogram} | R Documentation | 
Echogram visualisation
Description
This function allows to produce echogram visualisations from imported hac data. The user can define the visualisation Sv threshold and select between two built-in color schemes or define a custom scheme.
Usage
echogram(echogram, xref = c("ping", "distance", "time"), scheme = "echov", 
  Svthr = -80, Svmax = NULL, col.sep = 1, colbar = TRUE, main = NULL, ...)
Arguments
echogram | 
 an object of   | 
xref | 
 horizontal reference in echogram: “ping” (the default), “distance” or “time”.  | 
scheme | 
 color scheme for echogram, either: “echov” (the default) or “EK500”. It can also be a vector of valid color names.  | 
Svthr | 
 Sv visualisation threshold, in decibels (dB).  | 
Svmax | 
 maximum Sv visualisation value, in dB.  | 
col.sep | 
 separation between colors in dB.  | 
colbar | 
  logical. If   | 
main | 
 the acoustic frequency, by default.  | 
... | 
 other options to   | 
Details
Besides the two built-in color schemes, the user can define its own by specifying a vector of valid color names (see examples). This function uses imageScale function from sinkr package by Marc Taylor.
Author(s)
Héctor Villalobos
See Also
Examples
# import hac file
hacfile <- system.file("hac", "D20150510-T202500.hac", package = "echogram")
echo2.038 <- read.echogram(hacfile)
# echogram by default 
echogram(echo2.038)
# using alternative color schemes
echogram(echo2.038, Svthr = -70, col.sep = 1.5, scheme = "EK500")
echogram(echo2.038, Svthr = -70, col.sep = 3, scheme = c("white", "blue", "grey", "black"))