smwr.colors | R Documentation |
Generates a sequence of colors along a specified range.
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)
n |
the number of colors to generate. |
alpha |
a measure of the intensity of the generated colors |
A sequence of character strings indicating the colors.
blueRed.colors
generates a sequence from blue to red through
magenta. redBlue.colors
generates a sequence from red to blue through
magenta. coolWarm.colors
generates a sequence from blue to red
through green. warmCool.colors
generates a sequence from red to blue
through green. greenRed.colors
generates a sequence from green to red
through yellow. redGreen.colors
generates a sequence from red to
green through yellow. pastel.colors
genereates a sequence of
well-separated pastel colors useful for areas or bars.
rainbow
, hcl
## 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 ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.