Learn R Programming

satin (version 1.1.0)

satinPalette: 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)

Value

A list with two elements

palette

a vector of colors.

breaks

a vector of color breaks.

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.

Author

Héctor Villalobos

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.

See Also

plot.satin

Examples

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

Run the code above in your browser using DataLab