Re: [R] Highlighting a few bars in a barplot

2010-09-09 Thread Michael Bibo
Daniel Brewer icr.ac.uk> writes: > > Hello, > > I have a bar plot where I am already using colour to distinguish one set > of samples from another. I would also like to highlight a few of these > bars as ones that should be looked at in detail. I was thinking of > using hatching, but I can't

Re: [R] Highlighting a few bars in a barplot

2010-09-09 Thread RINNER Heinrich
Hello Daniel, something like that might work: x <- runif(6) marker1 <- rep(c("red", "blue"), 3) marker2 <- c(rep(0,5), 10) barplot(x, col = marker1) barplot(x, density = marker2, add=T) But I'd be interested if you learn about other solutions... -Heinrich. > -Ursprüngliche Nachricht- >