[R] Help with barplot

From: <matgopa1_at_umbc.edu>
Date: Fri 24 Feb 2006 - 17:36:29 EST


Hello all,

I need to create a horizontal barplot with the following data:

City Median

Springfield     34
Worcester     66
Fitchburg     65
Lowell       63
Quincy       62
Boston       36
Cambridge    54
Waltham      42
Medford      52
Pittsfield     65
Rensselaer     60
Schenectady     56
Glens Falls     64

The code below produces the bars for the Median, but how or where do I specify the corresponding city name on the y-axis for the bars.

x<-data.frame(City=ozone.ne.trim$City,Median=ozone.ne.trim$Median) with (x,

      barplot(Median,horiz=TRUE))

Please help.
Mathangi



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Feb 24 17:46:16 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:44 EST