Skip to content

shades

1.5.0Package record

Simple Colour Manipulation

3packages dependsuggested by 3
206.4Kdownloads / year
96.0%test coverage
13/13flavors OK

Overview

About

Functions for easily manipulating colours, creating colour scales and calculating colour distances.

Changes in 1.5.0
  • Names and dimnames are now supported for shade objects and can be set using the usual accessor functions. Names are initialised from standard colours where these are specified rather than a hex code, propagated through operations like concatenation and shown by swatch() as labels on each box. Dimnames are set automatically when a matrix is created by updating colour properties on a vector, and are shown by swatch() as axis labels.
  • The new shades() convenience function is a variant of shade() that combines construction of shade objects with concatenation. It supports inline colour naming using standard argument names, and creating shade objects from source objects of different types.
  • New colour property accessor function luminance() has been added, as has the contrast() function for (W3C) colour contrast.
Show all changes in 1.5.0Hide the rest of the changes in 1.5.0
  • There is now full support for the Oklab colour space.
  • Empty shade vectors are now allowed and can be created with shade().
  • The swatch() function gains extra parameters for controlling additional aspects of the plot.
  • The argument to function objects created by gradient() is now called n rather than steps, for compatibility with tinyplot.
  • The tinytest package is now used for testing.
  • The README now includes an example of using shades with tinyplot, as well as ggplot2.
  • A small roxygen issue has been fixed (#9).

From NEWS in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.4 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-07-08
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 1.5.0
READMEYes · 989 wordsVignettesNoNEWSYes · 33% structured · mentions 1.5.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
12
Examples that run
100%11 run in a plain check
Exported functions with examples
92%
Documented parameters
88%
Return-value docs
92%
Help pages citing references
33%

Downloads

206.4K
CRAN downloads in the past year
Rank #886 · ~565/day · ~17.2K/mo
Daily download trend is not available in this view yet.
15.1K30 days
48.2K90 days
206.4K1 year
Compare downloads with other packages →
Also on2K r2u2 autocran11.3K conda_forge148 c2d4u

Repository

86Stars
5Forks
0Open issues
0Open PRs
6Releases
178Commits
5Commit identities
rcolour-manipulationcolor-manipulationcolour-spacescolorcolour
178 commits · Last activity 2026-07-01
Responsiveness
How these are sampled
PRs merged (all time)
80%
Median days to close, 50 most recently updated closed issues
8
Median days to close, 50 most recently updated closed PRs
9

Stars over time

2025-08-05 · 862026-07-07 · 86
PracticesBeta

5 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/jonclayden/shades on 2026-10-22.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux and Windows

Docs source (1)
README.Rmd
Coverage (2)
Coverage reporting (Codecov).covrignore
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)

Installing shades adds no packages beyond those that come with R.

Depends (0)
none
Imports (0)
none
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Reverse dependencies
3direct
26indirect
Imports 3
Suggested by 3
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (1)
Maintainer since 0.1.0 (2016), Author
Releases (9)

Pick two releases to compare their code metrics.

  • 1.5.0Latest
    record
    2026-07-02 · current release · diff ↗ ·
    added 4 exports
    contrast, expect_equal_shades, luminance, shades
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 1.4.0
    record
    2019-08-02 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.3.1
    record
    2019-01-07 · diff ↗
  • 1.3.0
    record
    2018-11-19 · diff ↗
  • 1.2.0
    record
    2018-04-26 · diff ↗ ·
    added 3 exports
    opacity, recycle, scalefac
  • R
    R 3.5.0 released · 2018-04-23
  • 1.1.0
    record
    2018-02-06 · diff ↗
  • 1.0.0
    record
    2018-01-10 · diff ↗ ·
    removed 1 export
    hueshift
    added 5 exports
    chroma, delta, dichromat, hue, lightness
Show 5 earlier eventsHide 5 earlier events
  • R
    R 3.4.0 released · 2017-04-21
  • 0.2.0
    record
    2016-09-24 · diff ↗ ·
    added 9 exports
    %.)%, %_/%, addmix, complement, coords, distance, space, submix, warp
  • R
    R 3.3.0 released · 2016-05-03
  • 0.1.0
    record
    2016-01-06
  • R
    R 3.2.0 released · 2015-04-16

Package metadata

First published
2016-01-06
Total releases
9 / 10 yrs
License
BSD_3_clause + file LICENCE OSI
Download size
35 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("shades")
Clayden, J. (2026). shades: Simple Colour Manipulation (Version 1.5.0) [Computer software]. https://doi.org/10.32614/CRAN.package.shades

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for shades version 1.5.0 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy