Learn R Programming

chronosphere (version 0.4.1)

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")

Value

A function producing a colour gradient ramp.

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.