
The goal of spectralscale is to provide a set of palettes and
corresponding continuous, discrete and binned colour and fill scales
based on a consistent set of colours. These should cover different
purposes like those typical for sequential, diverging, qualitative and
paired palettes, and preferably be robust with respect to different
types of colour vision deficiency.
This is obviously quite a challenge, and I’m not sure it is even
feasible, but there are some excellent tools available to start from:
The palettes are currently all based on ColorBrewer’s Spectral palette,
as approximated by the recent, and excellent colorspace package.
You can install the latest version of spectralscale with any of the
following:
renv::install("rogiersbart/spectralscale")
# pak::pkg_install("rogiersbart/spectralscale")
install.packages("spectralscale", repos = c('https://rogiersbart.r-universe.dev', 'https://cloud.r-project.org'))
remotes::install_github("rogiersbart/spectralscale")
This is an overview of the current palettes:
