Re: [R] differentiate groups on barplot

2007-05-14 Thread Marc Schwartz
On Tue, 2007-05-15 at 11:36 +1000, Murray Pung wrote: > To differentiate between groups on the barplot, I guessed that col = > colr[test$group] would have worked. How can I do this? > > Many Thanks > Murray > > > test <- > structure(list(patient = 1:20, score = c(100, 95, 80, 75, > 64, 43, 42, 4

[R] differentiate groups on barplot

2007-05-14 Thread Murray Pung
To differentiate between groups on the barplot, I guessed that col = colr[test$group] would have worked. How can I do this? Many Thanks Murray test <- structure(list(patient = 1:20, score = c(100, 95, 80, 75, 64, 43, 42, 40, 37, 35, 30, 29, 27, 26, 23, 22, 19, 18, 17, 16), group = c(1, 0, 1, 0,