Skip to contents

Absolute palettes

Colour palettes matched to real data values on a fixed scale, for sea surface temperature, chlorophyll-a, sea ice concentration, and bathymetry. Each works in three modes, n colours with pal(n), colours for data values with pal(data), and the full palette with pal(palette = TRUE).

sst_pal() sstPal()
SST colours
chl_pal() chlPal()
Ocean colour colours for chlorophyll-a.
ice_pal() icePal()
Sea ice colours
bathy_deep_pal() bathyDeepPal()
Bathymetry
dirty_pal()
Bathymetry palette, absolute for global use

Data-relative colours

Map values to colours by the range of the data itself, or by absolute date-time.

d_pal() data_pal()
Colours for data values
mk_timePal()
Time-indexed colour.

Image colour mapping

Convert numeric data to hex colours the way image() does, or convert matrices and multi-band arrays to hex colour matrices ready for rasterImage(), textures, or export.

image_hex()
Convert image data to a matrix of hex colours
image_pal() image_raster() image_stars()
Map data values to colours

Stretching

Rescale data to the unit interval ahead of colour mapping, linear quantile clip, log, square root, and histogram equalisation.

Helpers

col2hex()
Colour to hex conversion.

Data

oisst chl
Sea surface temperature (SST) and ocean color chlorophyll-a (CHLA).

Package