I am trying to plot a simple bar.plot
where heat.colors
reflect increasing (red) or decreasing (blue or yellow) trends (through time in this case).
For example,
set.seed(1)
estimates<-sample(1:100, 30, replace=FALSE) #this estimates are not sorted
barplot(estimates, cex.names=0.8, col=heat.colors(30, alpha = 1))
However, in this case, colors do not reflect the changing estimates but only the direction of X axis values.
Any ideas?