View source: R/hypoimg_generic.R
clr_lighten | R Documentation |
clr_lighten
produces a lighter version on given colors.
clr_lighten(color, factor = 0.2)
color |
string (color, mandatory) |
factor |
numeric scalar (optional), between 0 and 1, amount of lightening |
superseded: Please use prismatic::clr_lighten()
instead
Takes a vector of colors and lightens them by a given factor. 1 returns the input color, 0 returns white
clr_darken
ggplot(tibble( x = 1:5))+ coord_equal()+ geom_tile(aes(x = x, y = 1, fill = factor(x)))+ scale_fill_manual(values = map_chr((1:5)/5,.f = clr_lighten, color = clr2[[1]]))+ theme_void()+ theme(legend.position = 'none')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.