[R] barplot with color coding according to value

Jim Lemon jim at bitwrit.com.au
Tue Jun 17 13:34:14 CEST 2008


maria at meteo.mcgill.ca wrote:
> Hello,
> 
> I want to use R to produce nice meteograms...
> 
> For this I would need to color-code my barplot according to the value plotted
> 
> say if value x > 30 ... the bar is red ; if x between 20 and 10, the bar
> is blue etc...
> 
> any ideas how to proceed ?
> 
Hi Maria,

Have a look at "barp" in the plotrix package.

Jim



More information about the R-help mailing list