colourScaleR provides a unified interface to scico, viridis, & Color Brewer for creating colour scales
You can install the development version of colourScaleR from github with:
remotes::install_github("RichardJActon/colourScaleR")library(colourScaleR)
universal_colour_scaler(
rnorm(10),
type = "brewer",
scale = "log",
palette = "RdYlBu",
verbose = TRUE,
n_breaks = 10,
mode = "scaled",
direction = -1
)