tricolore: A Flexible Color Scale for Ternary Compositions

Compositional data consisting of three-parts can be color mapped with a ternary color scale. Such a scale is provided by the tricolore packages with options for discrete and continuous colors, mean-centering and scaling. See Jonas Schöley (2021) "The centered ternary balance scheme. A technique to visualize surfaces of unbalanced three-part compositions" <doi:10.4054/DemRes.2021.44.19>, Jonas Schöley, Frans Willekens (2017) "Visualizing compositional data on the Lexis surface" <doi:10.4054/DemRes.2017.36.21>, and Ilya Kashnitsky, Jonas Schöley (2018) "Regional population structures at a glance" <doi:10.1016/S0140-6736(18)31194-2>.

Package details

AuthorJonas Schöley [aut, cre] (ORCID: <https://orcid.org/0000-0002-3340-8518>), Ilya Kashnitsky [aut] (ORCID: <https://orcid.org/0000-0003-1835-8687>)
MaintainerJonas Schöley <jschoeley@gmail.com>
LicenseGPL-3
Version1.2.6
URL https://github.com/jschoeley/tricolore
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("tricolore")

Try the tricolore package in your browser

Any scripts or data that you put into this service are public.

tricolore documentation built on Dec. 2, 2025, 5:06 p.m.