Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bathy.colors

Generate a sequence of colors for plotting bathymetric data.


Description

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

Usage

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

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

sommer

Solving Mixed Model Equations in R

v4.1.3
GPL (>= 2)
Authors
Giovanny Covarrubias-Pazaran
Initial release
2021-04-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.