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

makeColorscheme

Create a color generating function from a vector of colors


Description

Create a color generating function from a vector of colors

Usage

makeColorscheme(col)

Arguments

col

a vector of colors

Value

a function that generates a vector of colors interpolated among the colors in col

Examples

cs <- makeColorscheme( c('red','white','blue') )
cs(10)
cs(10, alpha=.5)

mosaic

Project MOSAIC Statistics and Mathematics Teaching Utilities

v1.8.3
GPL (>= 2)
Authors
Randall Pruim [aut, cre], Daniel T. Kaplan [aut], Nicholas J. Horton [aut]
Initial release

We don't support your browser anymore

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