Heatmap colors for n classes

heatmap.color(n)

Arguments

n

number of colors.

Examples

barplot(8:1,col=heatmap.color(8))