View source: R/palette.echogram.R
palette.echogram | R Documentation |
This function allows to design and visualise color palettes to be used in echograms.
palette.echogram(Svthr, Svmax, col.sep = NULL, col.nb = NULL, scheme = NULL, visu = FALSE)
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 |
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.
A list with two elements
palette |
a vector of colors |
breaks |
a vector of color breaks |
Héctor Villalobos
echogram
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.