[R] arrows in histograms

(Ted Harding) Ted.Harding at nessie.mcc.ac.uk
Thu Nov 25 20:46:15 CET 2004


On 25-Nov-04 Rogerio Rosa da Silva wrote:
> Dear all,
> 
> I have a null frequency histogram of _pairwise associations values.
> How can I put _an arrow on the histogram to indicate the critical value
> obtained from the null distribution? [In this case, quantile 0.05].

?Something like

  q05 <- qnorm(0.95)  ## or qnorm(0.05) -- not sure which you really want
  hist(x,xlim=c(-5,5))
  arrows(q05,400,q05,0,length=0.1)
  text(q05+0.1,400,"5 per cent point",adj=0)

Best wishes,
Ted.


--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 094 0861  [NB: New number!]
Date: 25-Nov-04                                       Time: 19:46:15
------------------------------ XFMail ------------------------------




More information about the R-help mailing list