Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

Re: [R] Barplot

Jim Lemon

2006-08-30

Replies:

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

______________________________________________
R-help@(protected)
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
©2008 r-help.com - Jax Systems, LLC, U.S.A.