get_shades {DImodelsVis} | R Documentation |
Returns shades of colours
get_shades(colours = c("#808080"), shades = 3)
colours |
A character vector of colours recognizable by R, to produces shades of |
shades |
A numeric vector giving the number of shades for each colour |
A list consisting of hex codes describing the shades of each colour
## Shades for a single colour
get_shades(c("red"))
## Shades for multiple colours
get_shades(c("red", "blue" ,"#A5F8E3", "#808080"), shades = c(2, 3, 4, 5))
## A single value for shade would imply all colours get the same number of shades
get_shades(c("red", "blue" ,"#A5F8E3", "#808080"), shades = 2)