Colour palettes for data, based on some well known public data sets. Includes helper functions to map absolute values to known palettes, and capture the work of image colour mapping as raster data sets.
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
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
icePal(palette = TRUE)returns the entire palette, with colours
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.
Run this code to load the vignette within R:
This repository holds the current development version of the contributed R-package
This development version is more recent than the current release of
palr on CRAN.
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
If you don't have
devtools installed you should first run
o Added examples and tests
oisst as a built-in data set.
o fixes for 3.3.0
o added bathyDeepPal
o new function mk_timePal
o renamed functions to camel case
o improved vignette
o added ice.pal
o basics working