heat.colours: Some more realistic heat colours

Description Usage Arguments Details Examples

View source: R/plot_functions.R

Description

More realistic (or at least nicer) heat colours, for use in e.g. image instead of heat.colors.

Usage

1
heat.colours(n = 20, alpha = 1)

Arguments

n

the number of colors to be in the palette.

alpha

the alpha transparency.

Details

These colours go from almost black to white, via red and yellow. Suggestions for improvement are most welcome!

Examples

1
2
3
4
5
{
  layout(rbind(1:2))
  image(toeplitz(20:1), col=heat.colours(), main='heat.colours')
  image(toeplitz(20:1), col=heat.colors(20), main='heat.colors')
}

stevetnz/stevesRfunctions documentation built on May 28, 2019, 8:21 a.m.