Learn R Programming

pals (version 1.9)

pal.heatmap: Show a palette/colormap with a random heatmap

Description

Show a palette/colormap with a random heatmap

Usage

pal.heatmap(pal, n = 25, miss = 0.05, main = "")

Value

None.

Arguments

pal

A palette function or a vector of colors.

n

The number of squares vertically in the heatmap.

miss

Fraction of squares with missing values, default .05.

main

Main title

Author

Kevin Wright

References

None

Examples

Run this code
pal.heatmap(brewer.paired, n=12)
pal.heatmap(coolwarm, n=12)
pal.heatmap(tol, n=12)
pal.heatmap(glasbey, n=32)
pal.heatmap(kelly, n=22, main="kelly", miss=.25)

Run the code above in your browser using DataLab