Sent: Mon, 6 Aug 2012 15:40:55 -0400
To: r-help@r-project.org
Subject: [R] Overlay Histogram
Dear all,
For two sets of random variables, say, x - rnorm(1000, 10, 10)
and y
- rnorm(1000. 3, 20).
Is there any way to overlay the histograms (and density curves) of x
and
y
2012 15:40:55 -0400
To: r-help@r-project.org
Subject: [R] Overlay Histogram
Dear all,
For two sets of random variables, say, x - rnorm(1000, 10, 10)
and y
- rnorm(1000. 3, 20).
Is there any way to overlay the histograms (and density curves) of x
and
y
on the plot of y vs. x?
The histogram
@gmail.com
Sent: Mon, 6 Aug 2012 15:40:55 -0400
To: r-help@r-project.org
Subject: [R] Overlay Histogram
Dear all,
For two sets of random variables, say, x - rnorm(1000, 10, 10)
and y
- rnorm(1000. 3, 20).
Is there any way to overlay the histograms (and density curves) of x
Thanks a lot.
Hannah
2012/8/6 R. Michael Weylandt michael.weyla...@gmail.com
See
example(layout)
for one idea. I think you might also want to look into rug plots.
Best,
Michael
On Mon, Aug 6, 2012 at 2:40 PM, li li hannah@gmail.com wrote:
Dear all,
For two sets of random
()
pushViewport(viewport(layout = grid.layout(2, 1)))
print(p1, vp = vplayout(1, 1))
print(p2, vp = vplayout(2, 1))
John Kane
Kingston ON Canada
-Original Message-
From: hannah@gmail.com
Sent: Mon, 6 Aug 2012 15:40:55 -0400
To: r-help@r-project.org
Subject: [R] Overlay Histogram
Dear all,
For two sets of random variables, say, x - rnorm(1000, 10, 10) and y
- rnorm(1000. 3, 20).
Is there any way to overlay the histograms (and density curves) of x and y
on the plot of y vs. x?
The histogram of x is on the x axis and that of y is on the y axis.
The density curve here
See
example(layout)
for one idea. I think you might also want to look into rug plots.
Best,
Michael
On Mon, Aug 6, 2012 at 2:40 PM, li li hannah@gmail.com wrote:
Dear all,
For two sets of random variables, say, x - rnorm(1000, 10, 10) and y
- rnorm(1000. 3, 20).
Is there any way to
@gmail.com
To: r-help r-help@r-project.org
Cc:
Sent: Monday, August 6, 2012 3:40 PM
Subject: [R] Overlay Histogram
Dear all,
For two sets of random variables, say, x - rnorm(1000, 10, 10) and y
- rnorm(1000. 3, 20).
Is there any way to overlay the histograms (and density curves) of x and y
8 matches
Mail list logo