Skip to content

tricolore

A Flexible Color Scale for Ternary Compositions

v1.2.6 · Dec 2, 2025 · GPL-3

Description

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>.

Downloads

CRAN

243

Last 30 days

20430th

654

Last 90 days

5.9K

Last year

Trend: +41.3% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

26

Last 90 days

171

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

3

Last 7 days

8

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

for unstated dependencies in examples

Warning in file(out, "wt") :
  cannot open file '/tmp/RtmpfVU8sT/file2f19a81d0c69af/Tricolore.R': No space left on device
Error in file(out, "wt") : cannot open the connection
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

2,421

Files

47

Compiled share

0%

Has compiled src

No

Language breakdown

R 1,204 (49.7%)Tests 97 (4%)Docs 900 (37.2%)Vignettes 220 (9.1%)

API

Exported functions

3

Internal functions

24

Recent export changes

v1.2.0+1 TricoloreSextant

Testing & CI

Has tests

Yes

Test-to-code ratio

0.08

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

50%

Secret pattern count

1

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.0

System requirements

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

6

First release

2018-05-27

Latest release

2025-12-02

Avg cadence

319 days

Cold removal rate

Dep drift

2

LOC over versions

v1.0.3: 1,417 LOCv1.2.0: 2,327 LOCv1.2.1: 2,327 LOCv1.2.2: 2,365 LOCv1.2.4: 2,423 LOCv1.2.6: 2,421 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies ggplot2 ggtern rlang (>= 1.1.0) shiny assertthat tricolore

Version History

7 tracked
new 1.2.6 Mar 10, 2026
updated 1.2.6 ← 1.2.4 diff Dec 1, 2025
updated 1.2.4 ← 1.2.2 diff May 14, 2024
updated 1.2.2 ← 1.2.1 diff Apr 27, 2020
updated 1.2.1 ← 1.2.0 diff Jul 28, 2019
updated 1.2.0 ← 1.0.3 diff Sep 13, 2018
new 1.0.3 May 26, 2018