Re: [R] barplot dataframes w/ varying dimensions

From: Petr Pikal <petr.pikal_at_precheza.cz>
Date: Fri 09 Jun 2006 - 21:24:43 EST


Hi

something like
> tab

      alfa beta gamma delta

qwert 56.5 58.5  56.5  58.5
asdfg 73.0 73.0  43.0  73.0
zxcvb 63.0 63.0  43.0  63.0
yuiop 63.0 63.0  43.0  63.0


barplot(as.matrix(tab), beside=T, legend.text=T)

HTH
Petr

On 9 Jun 2006 at 11:26, Albert Vilella wrote:

From:           	Albert Vilella <avilella@gmail.com>
To:             	r-help@stat.math.ethz.ch
Date sent:      	Fri, 09 Jun 2006 11:26:26 +0100
Subject:        	[R] barplot dataframes w/ varying dimensions
Send reply to:  	avilella@gmail.com
	<mailto:r-help-request@stat.math.ethz.ch?subject=unsubscribe>
	<mailto:r-help-request@stat.math.ethz.ch?subject=subscribe>

> Hi all,
>
> I would like to do a barplot of a dataframe like this one:
>
> alfa beta gamma delta
> qwert 56.5 58.5 56.5 58.5
> asdfg 73.0 73.0 43.0 73.0
> zxcvb 63.0 63.0 43.0 63.0
> yuiop 63.0 63.0 43.0 63.0
>
> with the labels of the rows and columns.
>
> I would like to have something that works for dataframes with varying
> dimensions, and so far I haven't found any way to do it.
>
> What would be the best way to do that?
>
> Thanks in advance,
>
> Albert.
>
> ______________________________________________
> 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

Petr Pikal
petr.pikal@precheza.cz



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 Jun 09 21:52:16 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 11 Jun 2006 - 05:34:52 EST.

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