palettes: Methods for Colour Vectors and Colour Palettes

Provides a comprehensive library for colour vectors and colour palettes using a new family of colour classes (palettes_colour and palettes_palette) that always print as hex codes with colour previews. Capabilities include: formatting, casting and coercion, extraction and updating of components, plotting, colour mixing arithmetic, and colour interpolation.

Version: 0.2.1
Depends: R (≥ 2.10)
Imports: vctrs, cli, methods, pillar, rlang (≥ 1.0.0), purrr, prismatic, farver (≥ 2.0.3), ggplot2 (≥ 3.5.0), scales, tibble
Suggests: pkgdown, testthat (≥ 3.0.0), dplyr, knitr (≥ 1.22), rmarkdown (≥ 2.20), colorspace, gt (≥ 0.9.0), biscale, sf, patchwork, MetBrewer, nord, PNWColors, viridisLite, covr, grDevices, withr
Published: 2024-07-13
DOI: 10.32614/CRAN.package.palettes
Author: Michael McCarthy [aut, cre, cph]
Maintainer: Michael McCarthy <m.mccarthy1624 at>
License: MIT + file LICENSE
NeedsCompilation: no
Language: en-GB
Materials: README NEWS
CRAN checks: palettes results


Reference manual: palettes.pdf
Vignettes: Using palettes with biscale
Compatibility with other colour packages
Creating a colour palette package
Using palettes with ggplot2
Using palettes with gt


Package source: palettes_0.2.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): palettes_0.2.0.tgz, r-oldrel (arm64): palettes_0.2.0.tgz, r-release (x86_64): palettes_0.2.0.tgz, r-oldrel (x86_64): palettes_0.2.0.tgz
Old sources: palettes archive


Please use the canonical form to link to this page.