Re: [R] Help with barplot

From: Jacques VESLOT <jacques.veslot_at_cirad.fr>
Date: Fri 24 Feb 2006 - 17:50:16 EST

par(mar=par()$mar+c(0,3,0,0))
with(x, barplot(structure(Median, names=as.character(City)),horiz=T,las=2))

matgopa1@umbc.edu a écrit :

>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
>
>
>



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:59:37 2006

This archive was generated by hypermail 2.1.8 : Fri 24 Feb 2006 - 21:08:50 EST