bathy.colors: Generate a sequence of colors for plotting bathymetric data.

Description Usage Arguments Value Examples

Description

bathy.colors(n) generates a sequence of n colors along a linear scale from light grey to pure blue.

Usage

1
  bathy.colors(n, alpha = 1)

Arguments

n

The number of colors to return.

alpha

Alpha values to be passed to rgb().

Value

A vector of blue scale colors.

Examples

1
2
3
4
{
# Plot a colorbar using bathy.colors
image(matrix(seq(100), 100), col=bathy.colors(100))
}

ocean documentation built on Jan. 15, 2017, 4:16 p.m.

Related to bathy.colors in ocean...