Learn R Programming

baytrends (version 1.2.1)

smwr.colors: Generate a Range of Colors

Description

Generates a sequence of colors along a specified range.

Usage

greenRed.colors(n, alpha = 1)

redGreen.colors(n, alpha = 1)

blueRed.colors(n, alpha = 1)

redBlue.colors(n, alpha = 1)

warmCool.colors(n, alpha = 1)

coolWarm.colors(n, alpha = 1)

pastel.colors(n, alpha = 1)

Arguments

n

the number of colors to generate.

alpha

a measure of the intensity of the generated colors

Value

A sequence of character strings indicating the colors.

Details

Added from smwrGraphs.

Examples

Run this code
# NOT RUN {
redGreen.colors(2)
blueRed.colors(2)
# For examples of warmCool.colors in graphs see
#demo(topic="DurationHydrograph", package="smwrGraphs")
# All have similar usage
# }

Run the code above in your browser using DataLab