Learn R Programming

echogram (version 0.1.3)

palette.echogram: 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)

Value

A list with two elements

palette

a vector of colors

breaks

a vector of color breaks

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.

Author

Héctor Villalobos

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.

See Also

echogram

Examples

Run this code
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)

Run the code above in your browser using DataLab