[R] How to plot grouped bar plot in R?

Jim Lemon jim at bitwrit.com.au
Fri Jun 22 13:46:26 CEST 2012


On 06/22/2012 07:35 PM, Manish Gupta wrote:
> HI,
>
> I have one input file
> Alpha	0	0.625
> Beta	1	0.107143
> Gama	2	0.910714
> Delta	0	0
> zeta	0	0
> eta	0	0.089286
>
> I want to to plot bar plot like below
>
> http://r.789695.n4.nabble.com/file/n4634182/Screenshot.png
>
> I can plot if i  have input file in transpose format but how can i do this
> in R using above input file.
>
Hi Manish,
Don't you ever read the help pages?

barplot(cbind(Alpha,Beta,Gama,Delta,zeta,eta),beside=TRUE,horiz=TRUE)

Jim



More information about the R-help mailing list