[R] Barplot

Jim Lemon jim at bitwrit.com.au
Thu Aug 31 02:27:12 CEST 2006


Muhammad Subianto wrote:
> ... 
> I have tried to learn ?xtabs ?table and ?ftable but I can't figure out.
> I need a barplot for all variables and the result maybe like
> 
> |   |                              |   |
> |   |   | |   |   |            |   |   |
> |pos|neg| |pos|neg|            |pos|neg|
> |   |   | |   |   |            |   |   |
> --------- ---------            ---------
>     v1        v2    v3 .... v7     v8
> 
barplot(sapply(z1[1:8],by,z1[9],sum),beside=TRUE)

Jim



More information about the R-help mailing list