A Discrete Colour Palette

A discrete colour palette. These colours make it easier to create relatively accessible and colour-blind safe visualisation.


jumble

CRANstatus

The objective of jumble is to provide a pretty discrete colour palette that is accessible and colourblind safe. The 7 colours are accessible to normal eyes. The first 5 colours of these are colour-blind safe. The first 3 colours of these are greyscale safe.

Installation

Install from CRAN, or development version from GitHub.

install.packages("jumble") 
pak::pak("davidhodge931/jumble")

Example

library(jumble)
library(scales)
library(dichromat)
#> Warning: package 'dichromat' was built under R version 4.6.1
library(colorspace)
#> Warning: package 'colorspace' was built under R version 4.6.1

The 7 colours are accessible to normal vision.

show_col(jumble)

The first 5 colours are colour-blind safe for all forms of colour blindness.

show_col(dichromat(colours = jumble, type = "deutan"))
show_col(dichromat(colours = jumble, type = "protan"))
show_col(dichromat(colours = jumble, type = "tritan"))

Only the first 3 colours are greyscale safe.

show_col(desaturate(jumble))

Other packages

This package is part of a group of related packages built to extend ggplot2.

ggblanket

ggrefine

ggscribe

ggwidth

blends

jumble

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("jumble")

0.2.0 by David Hodge, 14 days ago


https://github.com/davidhodge931/jumble, https://davidhodge931.github.io/jumble/


Report a bug at https://github.com/davidhodge931/jumble/issues


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


Authors: David Hodge [aut, cre, cph] (ORCID:


Documentation:   PDF Manual  


MIT + file LICENSE license


Suggests colorspace, dichromat, scales, spelling, testthat


Imported by ggblanket, ggrefine.

Suggested by blends, ggscribe.


See at CRAN