Re: [R] how to plot density distribution with a arrow pointer?

2005-06-16 Thread Adaikalavan Ramasamy
-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

Re: [R] how to plot density distribution with a arrow pointer?

2005-06-16 Thread Gabor Grothendieck
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

Re: [R] how to plot density distribution with a arrow pointer?

2005-06-16 Thread Jim Brennan
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

Re: [R] how to plot density distribution with a arrow pointer?

2005-06-16 Thread Gabor Grothendieck
-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

[R] how to plot density distribution with a arrow pointer?

2005-06-15 Thread Hu Chen
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

Re: [R] how to plot density distribution with a arrow pointer?

2005-06-15 Thread Jim Brennan
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

Re: [R] how to plot density distribution with a arrow pointer?

2005-06-15 Thread Hu Chen
)),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