echogram: Echogram visualisation

Description Usage Arguments Details Author(s) See Also Examples

View source: R/echogram.R

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

1
2
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 class “echogram” as returned by read.echogram.

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 TRUE a color bar is added to the echogram.

main

the acoustic frequency, by default.

...

other options to image.

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

palette.echogram.

Examples

 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"))

Example output



echogram documentation built on Dec. 16, 2019, 9:30 a.m.