palettes is an R package for working with colour vectors and colour palettes. There are three main goals to the palettes package, each described in a vignette:
To provide a new family of colour classes (
palettes_palette) that always print as hex codes with colour previews;
To provide a comprehensive library of methods for working with colour vectors and colour palettes, including methods for ggplot2,
vignette("biscale"); and other colour packages,
To make it easy for anyone to make their own colour palette package;
vignette("creating-packages"). Colour palette packages made with palettes exist solely for the purpose of distributing colour palettes and get access to all the features of palettes for free.
Install palettes from CRAN with:
# Install from GitHub # install.packages("remotes") remotes::install_github("mccarthy-m-g/palettes") # Install from R-universe install.packages('palettes', repos = 'https://mccarthy-m-g.r-universe.dev')
and also in the installed package:
help(package = "palettes").
MIT © Michael McCarthy