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
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.
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
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)
4 matches
Mail list logo