Colour Palettes for Data

Colour palettes for data, based on some well known public data sets.

Linux Build Status Windows Build Status CRAN RStudio mirror downloads Coverage Status


palr provides colour palettes for data, based on some well known remotely sensed data sets for sea ice concentration, sea surface temperature and chlorophyll-a.

There are four main ways of working with palr palette functions, which have names like icePal, chlPal and sstPal for ice, chlorophyll-a and sst respectively and mk_timePal for creating a time-mapped palette function.

  • icePal(n) return n colours from the palette
  • icePal(data) return the right colour for values in data
  • icePal(palette = TRUE) returns the entire palette, with colours cols and intervals breaks
  • tfun <- mk_timePal(datetimes, pal); plot(x, tfun(dt)) match date-times to a palette, or palette function.

There is a vignette illustrating basic usage, this can be read on CRAN or loaded from within R.

palr vignette

Run this code to load the vignette within R:


This repository holds the current development version of the contributed R-package palr.

This development version is more recent than the current release of palr on CRAN.

Users of palr are encouraged to report bugs and make feature requests here (click Issues in the menu on the right to start a new bug report or feature request).

Feel free to fork palr and make pull requests.

palr is a companion package to the data package raadtools, but is not tied to it.


Install the current release from CRAN using


The easiest way to install the github version of palr is through the devtools package:


If you don't have devtools installed you should first run




o Added examples and tests

o Installed oisst as a built-in data set.

o fixes for 3.3.0

o added bathyDeepPal

 VERSION 0.0.5

o new function mk_timePal

 VERSION 0.0.4

o renamed functions to camel case

o improved vignette


o added ice.pal

 VERSION 0.0.1

o basics working

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.0.6 by Michael D. Sumner, 3 years ago

Report a bug at

Browse source code at

Authors: Michael D. Sumner [aut, cre]

Documentation:   PDF Manual  

GPL-3 license

Suggests knitr, raster, rmarkdown, testthat, covr

Imported by paletteer.

Suggested by quadmesh.

See at CRAN