Learn R Programming

echogram (version 0.1.1)

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 = -70, Svmax = 0, col.sep = 1, scheme = "echov", visu = FALSE)

Arguments

Svthr

lower visualisation limit in decibels (dB).

Svmax

upper visualisation limit in dB.

col.sep

separation between colors in dB.

scheme

color scheme for echogram, either: ``echov'' (the default) or ``EK500''. It can also be a vector of valid color names.

visu

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

Value

A list with two elements

palette

a vector of colors

breaks

a vector of color breaks

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
# NOT RUN {
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