leaf.colors: Create a colour palette varying from dark green through...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/leaf_colors.R

Description

An alternative to heat.colors or terrain.colors.

Usage

1
leaf.colors(n, alpha = 1)

Arguments

n

the number of colors (= 1) to be in the palette.

alpha

the alpha transparency, a number in [0,1], see argument alpha in hsv.

Value

A character vector of color names.

Author(s)

Mike Meredith

See Also

heat.colors

Examples

1
2
3
4
5
6
op <- par(mfrow=1:2)
image(t(volcano)[ncol(volcano):1,], col = heat.colors(100))
image(t(volcano)[ncol(volcano):1,], col = leaf.colors(100))
image(t(volcano)[ncol(volcano):1,], col = terrain.colors(100))
image(t(volcano)[ncol(volcano):1,], col = rev(leaf.colors(100)))
par(op)

mikemeredith/MMmisc documentation built on Nov. 8, 2019, 11:34 p.m.