Re: [R] Patterns in histogram

2010-01-07 Thread David Winsemius
On Jan 7, 2010, at 10:42 AM, dbeest wrote: I’ve been busy making some histograms and I would like to distinguish different groups. I’ve been doing it like this: a <- c(1,1,1,1,2,2,2) hist(a,breaks=c(0,1,2)) hist(a[3:5],breaks=c(0,1,2),col="red",add=TRUE) Basically plotting them over each oth

[R] Patterns in histogram

2010-01-07 Thread dbeest
I’ve been busy making some histograms and I would like to distinguish different groups. I’ve been doing it like this: a <- c(1,1,1,1,2,2,2) hist(a,breaks=c(0,1,2)) hist(a[3:5],breaks=c(0,1,2),col="red",add=TRUE) Basically plotting them over each other, I assume there is a better way…Anyway what