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. It includes function
create the data used by the
image() function as colours.
There are five main ways of working with palr palette functions, which
have names like
sst_pal() for ice,
chlorophyll-a and sst respectively and
mk_timePal for creating a
time-mapped palette function.
ice_pal(n)return n colours from the palette
ice_pal(data)return the right colour for values in
ice_pal(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.
image_pal(data, col = colors, breaks = breaks)emulates the behaviour of
image()but return colours as data rather than draw a plot
See the website for documentation: http://australianantarcticdivision.github.io/palr/
Install the current release from CRAN using
To install the development version:
Please note that the palr project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.