Create Custom Palette with Individual Color Adjustments
Source:R/adjust_palette.R
custom_adjust_ltc.RdApply different lightness adjustments to each color in a palette.
Examples
# \donttest{
# Different adjustment for each color
custom_adjust_ltc(remains, c(-30, 0, 40, 0))
#> remains_custom
#> #521C57
#> #EEEDC0
#> #FFAD9A
#> #EED455
# Create gradient effect
custom_adjust_ltc("maya", c(-40, -20, 0, 20, 40))
#> maya_custom
#> #223752
#> #7198AE
#> #e0fbfc
#> #FF856D
#> #767D8B
# }