Re: [R] help: creating a unified histogram

2009-12-27 Thread Jim Lemon
On 12/28/2009 06:45 AM, Yael Yohai wrote: Good evening, I would like to put the histograms of several matrices on the same graph, together on a unified histogram (instead of having one bar per value on the x-axis, have multiple bars: one representing each matrix, with different colored bars for

Re: [R] help: creating a unified histogram

2009-12-27 Thread jim holtman
Here is one way of doing it using the basic graphics: # crate some data x1 <- rnorm(1,0,1) x2 <- rnorm(1,1,2) # get data from histograms bin.size <- seq(-10,10,0.1) # bin size - may sure it spans the range h1 <- hist(x1, plot=FALSE, breaks=bin.size) h2 <- hist(x2, plot=FALSE, breaks=bin.

Re: [R] help: creating a unified histogram

2009-12-27 Thread milton ruser
Hi Yael, Have you tried to find it on google "R graph gallery" ? bests milton On Sun, Dec 27, 2009 at 2:45 PM, Yael Yohai wrote: > Good evening, > > I would like to put the histograms of several matrices on the same graph, > together on a unified histogram (instead of having one bar per value

[R] help: creating a unified histogram

2009-12-27 Thread Yael Yohai
Good evening, I would like to put the histograms of several matrices on the same graph, together on a unified histogram (instead of having one bar per value on the x-axis, have multiple bars: one representing each matrix, with different colored bars for example to distinguish between the matrices)