Description Usage Arguments Details Author(s) See Also Examples
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.
1 2 |
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 |
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.
Héctor Villalobos
1 2 3 4 5 6 7 8 9 10 | # 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"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.