Description Usage Arguments Details Examples
View source: R/plot_functions.R
More realistic (or at least nicer) heat colours,
for use in e.g. image
instead of heat.colors
.
1 | heat.colours(n = 20, alpha = 1)
|
n |
the number of colors to be in the palette. |
alpha |
the alpha transparency. |
These colours go from almost black to white, via red and yellow. Suggestions for improvement are most welcome!
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')
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.