Build manual color range

e_color_range(data, input, output, colors = c("#bf444c", "#d88273",
  "#f6efa6"), ...)

Arguments

data

Data.frame in which to find column names.

input, output

Input and output columns.

colors

Colors to pass to colorRampPalette.

...

Any other argument to pass to colorRampPalette.

Examples

df <- data.frame(val = 1:10) df %>% e_color_range(val, colors)
#> val colors #> 1 1 #BF444C #> 2 2 #C45154 #> 3 3 #CA5F5D #> 4 4 #CF6D66 #> 5 5 #D57B6E #> 6 6 #DB8E78 #> 7 7 #E2A683 #> 8 8 #E8BE8F #> 9 9 #EFD69A #> 10 10 #F6EFA6