Displaying 1 result from an estimated 1 matches for "sohpist".
Did you mean:
sohost
2005 Feb 02
4
Combining two histograms
I have data like:
a <- rnorm(20000)
b <- rep(FALSE,20000)
b[sample(1:20000,15000)] <- TRUE
Using Lattice graphics, I can produce two side-by-side histograms quite
easily by:
histogram(a | b)
However, I would like to produce a "single" histogram with two bars
within each bin, one for each group, as the groups are in reality very
slightly different from each other. The