colshade {basetheme} | R Documentation |
Add Shade to Color
Description
Adds a selected amount of shade or tint to a vector of colors.
Usage
colshade(cols, frac = 0)
Arguments
cols |
a vector of colors |
frac |
a vector of shade fractions (between -1 and 1, defaults to 0) |
Details
This function adds shades and tints to provided list of colors.
Shade or tint is decided depending on the sign of the frac
argument:
positive values make colors darker and negative values lighten them.
Value
a vector of colors with added shades or tints.
Author(s)
Karolis Koncevičius
[Package basetheme version 0.1.3 Index]