Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ramps

Colour gradient ramps


Description

The object contains functions produced by the colorRampPalette function.

Usage

gradinv(n)

ocean(n)

terra(n)

ipccTemp(n, force = 11)

ipccPrec(n, force = 11)

wet(n)

ipccLine(n = 6)

ipccRCP(n = 4)

showPal(pal = "all")

Arguments

n

(numeric) Number of different colors to generate from the palette

force

(logical) Specify pal when multiple are available. More details to come.

pal

(character) A palette name from the lists below

Details

showPal can be used to display the available palettes. You can use pal = "all" or pal="" if you want to look at all the available palettes. You can also view single palettes individually. The following colour palettes are implemented:

  • gradinv(): inverse heatmap.

  • ocean(): ocean bathymetrical colours.

  • terra(): terrestrial topographical colours.

  • ipccTemp(): gradient from blue to red according to the official IPCC AR6 WG2 colour palette.

  • ipccPrec(): gradient from brown to green according to the official IPCC AR6 WG2 colour palette.

  • wet(): gradient from white to green to blue.

  • ipccLine(): discrete colours for line graphs according to the official IPCC AR6 WG2 colour palette.

  • ipccRCP(): discrete colours for climate scenarios according to the official IPCC AR6 WG2 colour palette.

Value

A function producing a colour gradient ramp.


chronosphere

Earth System History Variables

v0.4.1
CC BY 4.0
Authors
Adam T. Kocsis, Nussaibah B. Raja
Initial release
2021-04-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.