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

pal.heatmap2

Show palettes/colormaps with comparison heatmaps


Description

Draw a heatmap for each palette. Each palette heatmap consists of a block of randomly-chosen colors, plus a block for each color with random substitutions of the other colors. A missing value NA is added to each palette of colors.

Usage

pal.heatmap2(..., n = 100, nc = 6, nr = 20, labels = NULL)

Arguments

...

Palettes/colormaps, each of which is either (1) a vectors of colors or (2) a function returning a vector of colors.

n

The number of colors to display for palette functions.

nc

The number of columns in each color block.

nr

The number of rows in each color block.

labels

Vector of labels for palettes

Value

None

Author(s)

Kevin Wright

References

None

Examples

pal.heatmap2(watlington(16), tol.groundcover(14), brewer.rdylbu(11),
  nc=6, nr=20,
  labels=c("watlington","tol.groundcover","brewer.rdylbu"))

pals

Color Palettes, Colormaps, and Tools to Evaluate Them

v1.7
GPL-3
Authors
Kevin Wright [aut, cre] (<https://orcid.org/0000-0002-0617-8673>)
Initial release
2021-04-16

We don't support your browser anymore

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