palette.echogram: Design color palettes for echograms

View source: R/palette.echogram.R

palette.echogramR Documentation

Design color palettes for echograms

Description

This function allows to design and visualise color palettes to be used in echograms.

Usage

palette.echogram(Svthr, Svmax, col.sep = NULL, col.nb = NULL, scheme = NULL, visu = FALSE)

Arguments

Svthr

lower visualisation limit in decibels (dB).

Svmax

upper visualisation limit in dB.

col.sep

separation between colors in dB.

col.nb

number of colors.

scheme

color scheme for echogram, “parula” (the default), “EK500”, or “echov”. It can also be a vector of valid color names, or a function generating color names.

visu

logical. If TRUE, a visual representation of the palette is created.

Details

This function is mainly intended to be called by plot.echogram, however it is possible to use it directly in order to have a first impression of a custom color palette.

Value

A list with two elements

palette

a vector of colors

breaks

a vector of color breaks

Author(s)

Héctor Villalobos

See Also

echogram

Examples

palette.echogram()
palette.echogram(Svthr=-75, col.sep=1.5, scheme="EK500", visu=TRUE)
palette.echogram(Svthr=-81, col.sep=3, scheme=c("white", "blue", "black"), visu=TRUE)

hvillalo/echogram documentation built on Oct. 2, 2023, 7:28 a.m.