Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.
/ khroma Public archive

Colour Schemes for Scientific Data Visualization - Moved to https://codeberg.org/tesselle/khroma

License

Notifications You must be signed in to change notification settings

tesselle/khroma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a72d87e · Jan 9, 2019

History

79 Commits
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019
Oct 15, 2018
Oct 12, 2018
Oct 12, 2018
Jan 9, 2019
Oct 12, 2018
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019
Oct 12, 2018

Repository files navigation

khroma

Build Status GitHub Release CRAN Version CRAN Downloads lifecycle DOI

Overview

khroma is a utility package: it provides usefull colour schemes for archaeological data visualization. khroma provides Paul Tol's colour schemes and several thematic palettes (geologic timescale, FAO Soil Reference Groups, etc.) with scales for ggplot2.

Installation

Install the released version of khroma from CRAN:

install.packages("khroma")

Or install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("nfrerebeau/khroma")

Usage

Paul Tol's Colour Schemes

Paul Tol offers carefully chosen schemes, ready for each type of data, with colours that are:

  • distinct for all people, including colour-blind readers;
  • distinct from black and white;
  • distinct on screen and paper;
  • matching well together.

All the scales presented in his 2018 technical note [1] are implemented here, for use with graphics or ggplot2.

Qualitative data

Diverging data

Sequential data

Scientific colour schemes

The following scientific colour schemes are available:

  • International Chronostratigraphic Chart
  • FAO Soil Reference Groups

More will be added in future releases (suggestions are welcome).

[1] Tol, Paul (2018). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf.