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