-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hu Chen
Sent: June 15, 2005 10:41 AM
To: R
Subject: [R] how to plot density distribution with a arrow pointer?
Hi all,
for example:
X- rnorm(1000)
X0 - 0.899
I want to draw a density
On 6/16/05, Adaikalavan Ramasamy [EMAIL PROTECTED] wrote:
I am assuming that you want to do this empirically :
x0 - 0.899
x - c( rnorm(6000), rnorm(4000, mean=3) )
plot( d - density(x) )
y0 - approx( d$x, d$y, xout=x0 )$y # height at x0
segments( x0, 0, x0, y0, col=2 )
The
PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gabor Grothendieck
Sent: June 16, 2005 10:56 PM
To: [EMAIL PROTECTED]
Cc: R
Subject: Re: [R] how to plot density distribution with a arrow pointer?
On 6/16/05, Adaikalavan Ramasamy [EMAIL PROTECTED] wrote:
I am assuming that you want to do
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gabor Grothendieck
Sent: June 16, 2005 10:56 PM
To: [EMAIL PROTECTED]
Cc: R
Subject: Re: [R] how to plot density distribution with a arrow pointer?
On 6/16/05, Adaikalavan Ramasamy [EMAIL PROTECTED
Hi all,
for example:
X- rnorm(1000)
X0 - 0.899
I want to draw a density distribution plot with a arrow pointer
indicating the position of X0, meanwhile, giving out the p-value.
any functions?
Thanks very much.
__
R-help@stat.math.ethz.ch mailing
do ?arrows
Jim
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hu Chen
Sent: June 15, 2005 10:41 AM
To: R
Subject: [R] how to plot density distribution with a arrow pointer?
Hi all,
for example:
X- rnorm(1000)
X0 - 0.899
I want to draw a density
)),pos=2)
Rabline(v=X0,col=4)
If you actually want arrows do ?arrows
Jim
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hu Chen
Sent: June 15, 2005 10:41 AM
To: R
Subject: [R] how to plot density distribution with a arrow pointer?
Hi all