khroma 1.4.0

New functions

Bugfixes & changes

  • Restrict the RGB values in the anomalize() function (#5).

Enhancements

  • plot_scheme() now display colour for bad/missing data (if any).
  • colour() output can be restricted to a fraction of the cheme’s colour domain (#6).
  • colour() gained a new argument to force interpolation of colour scheme.
  • colour() gained a new argument to choose colour names language.
  • scale_*_YlOrBr(), scale_*_iridescent() and scale_*_smoothrainbow() gained a new argument to be used with discrete data (#3).

Internals

  • Move {ggplot2} and {scales} from Suggests to Imports.

khroma 1.3.0 (CRAN release date: 2019-10-26)

DOI

Bugfixes & changes

  • Fix qualitative colour picking.
  • Fix typos in colour names (#2).

Enhancements

  • Use {crayon} if installed to nicely print colours in the console.

Internals

  • Move {ggplot2} and {scales} from Imports to Suggests.
  • Remove scale_*_rainbow().

khroma 1.2.0 (CRAN release date: 2019-08-19)

DOI

New functions

  • Add the convert() function to simulate colour-blind vision.
  • Add the plot_scheme() function shows colours in a plot.
  • Add the plot_map() function produces a diagnostic map for a given colour scheme.

Bugfixes & changes

  • Fix the argument (number of levels) of the palette function returned by colour().

Enhancements

  • Add a vignette for Paul Tol’s colour schemes.

khroma 1.1.3 (CRAN release date: 2019-06-05)

DOI

New functions

  • Add three {ggplot2} scale functions: scale_*_pale(), scale_*_dark() and scale_*_discreterainbow().

Bugfixes & changes

  • The function scale_*_rainbow() is deprecated and replaced by scale_*_discreterainbow().
  • Fix the missing attribute of the palette function returned by colour() (bug introduced in v1.1.2).

Enhancements

  • The documentation is expanded with several remarks on the use of Paul Tol’s colour schemes.

khroma 1.1.2 (CRAN release date: 2019-06-02)

DOI

New functions

  • Add three {ggplot2} scale functions: scale_*_contrast(), scale_*_iridescent() and scale_*_land().

Bugfixes & changes

  • The function scale_*_tol() is removed.

Enhancements

  • Add three colour schemes: Paul Tol’s high contrast (qualitative), iridescent (sequential) and modified colour scheme for the AVHRR global land cover classification.

Internals

  • The function arrange() is removed.

khroma 1.1.1 (CRAN release date: 2019-04-10)

DOI

Bugfixes & changes

  • Midpoint can be specified in diverging colour scales.
  • Colour schemes can be reversed (a bug made the reverse argument inoperative).

Internals

  • Reduce required R version to 3.1.

khroma 1.1.0 (CRAN release date: 2019-02-24)

DOI

New functions

  • Add specific {ggplot2} scale functions for Paul Tol’s colour schemes: scale_*_bright(), scale_*_vibrant(), scale_*_muted(), scale_*_light(), scale_*_rainbow() (qualitative), scale_*_sunset(), scale_*_BuRd(), scale_*_PRGn() (diverging), scale_*_YlOrBr(), scale_*_smoothrainbow() (sequential).

Bugfixes & changes

  • The function scale_*_tol() is deprecated.

Enhancements

  • Add the FAO Soil Reference Groups colour scheme.

khroma 1.0.0 (CRAN release date: 2018-10-19)

DOI

  • First release (initial version on CRAN).