Distinct Colour Palettes Based on 'iwanthue'

Creating effective colour palettes for figures is challenging. This package generates and plot palettes of optimally distinct colours in perceptually uniform colour space, based on 'iwanthue' < http://tools.medialab.sciences-po.fr/iwanthue/>. This is done through k-means clustering of CIE Lab colour space, according to user-selected constraints on hue, chroma, and lightness.


hues

Travis-CI Build Status

This package generates and plot palettes of optimally distinct colours in perceptually uniform colour space, based on iwanthue. This is done through k-means clustering of CIE Lab colour space, according to user-selected constraints on hue, chroma, and lightness.

The development version of hues can be installed using install_github from the devtools package:

# install.packages('devtools') # uncomment if devtools isn't already installed
devtools::install_github('johnbaums/hues')

Examples

The examples below show palettes corresponding to some presets given at the iwanthue website.

library(hues)
iwanthue(5, plot=TRUE)

iwanthue(5, 0, 240, 0, 24, 0, 100, plot=TRUE)    # shades

iwanthue(5, 0, 360, 0, 54, 67, 100, plot=TRUE)   # pastel

iwanthue(5, 0, 360, 54, 180, 27, 67, plot=TRUE)  # pimp

iwanthue(5, 0, 360, 36, 180, 13, 73, plot=TRUE)  # intense

iwanthue(3, 0, 300, 60, 180, 73, 100, plot=TRUE) # fluoro

iwanthue(3, 220, 260, 12, 150, 0, 53, plot=TRUE) # blue ocean

News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("hues")

0.2.0 by John Baumgartner, 4 months ago


https://github.com/johnbaums/hues


Report a bug at https://github.com/johnbaums/hues/issues


Browse source code at https://github.com/cran/hues


Authors: John Baumgartner [aut, cre] , Russell Dinnage [aut]


Documentation:   PDF Manual  


LGPL (>= 3) license


Imports colorspace, methods

Suggests ggplot2


See at CRAN