ht <- hux(rnorm(5), rnorm(5))
map_background_color(ht,
by_quantiles(
c(0.2, 0.8),
c("red", "yellow", "green")
))
map_background_color(ht,
by_quantiles(
c(0.2, 0.8),
c("red", "yellow", "green"),
colwise = TRUE
))
map_background_color(ht,
by_equal_groups(
3,
c("red", "yellow", "green")
))
Run the code above in your browser using DataLab