satinPalette: Define custom color palettes for echograms

View source: R/satinPalette.R

satinPaletteR Documentation

Define custom color palettes for echograms

Description

This function allows to design and visualise color palettes to be used in ocean data plots.

Usage

satinPalette(zmin, zmax, col.sep = 0.1, scheme = "default", visu = FALSE)

Arguments

zmin

lower limit in data units.

zmax

upper limit in data units.

col.sep

separation between colors in data units.

scheme

color scheme, either: "default" or a vector of valid color names.

visu

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

Details

This function is mainly intended to be called by plot.satin, 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

plot.satin

Examples

satinPalette(zmin = 10, zmax = 35, visu = TRUE)
satinPalette(zmin = 10, zmax = 35, col.sep = 0.2, scheme = c("white", "blue", "black"), visu = TRUE)

satin documentation built on Sept. 23, 2022, 1:06 a.m.