RE: [R] using hist() with tapply()

2004-09-01 Thread Kevin Bartz
Hi Paul, I think lattice's histogram will do what you want, and in a friendlier manner. Take a look at this example: require(lattice) a - data.frame(draw = as.vector(mapply(rnorm, rep(100, 4), rep(0, 4), 1:4)), sd = factor(paste(sd =, rep(1:4, each = 100 Go ahead and

Re: [R] using hist() with tapply()

2004-09-01 Thread Kjetil Brinchmann Halvorsen
Schwarz,Paul wrote: Hi, I've been passing the hist() function to tapply() to quickly generate histograms based on the list of factors supplied to tapply(). However, I have not figured out how to generate titles for each of the histograms, which paste in the unique values of the list factors as