Skip to content
Prev 319060 / 398506 Next

create bar chart with different totals in a bar

https://github.com/hadley/devtools/wiki/Reproducibility

Is this what your matrix looks like?
mat1  <-  structure(c(11425, 11425, 11555, 11888, 2, 1, 1, 2, 1, 2, 1, 
2), .Dim = c(4L, 3L), .Dimnames = list(NULL, c("abnr2", "time", 
"cat")))
It is good practice to use dput() to supply sample data.

It is not particularly clear what you want to do. You apparently have four entries in the matrix and say that you want to have three bars.  

How do you want to handle the 11425 value since it has diffference cats?

John Kane
Kingston ON Canada
____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!