Re: [R] barplot with color coding according to value

From: Jim Lemon <jim_at_bitwrit.com.au>
Date: Tue, 17 Jun 2008 21:34:14 +1000

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



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 17 Jun 2008 - 11:38:45 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 17 Jun 2008 - 12:30:50 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive