if (! requireNamespace("scales")) {
stop("Please install the \"scales\" package to run this example")
}
ht <- as_hux(matrix(rnorm(25), 5, 5))
map_background_color(ht,
by_colorspace("red", "yellow", "blue"))
map_background_color(ht,
by_colorspace("red", "yellow", "blue",
colwise = TRUE))
Run the code above in your browser using DataLab