[R] Help With Custom QQ Plot

Adam Carr adamlcarr at yahoo.com
Mon Dec 28 15:49:21 CET 2009


Good Morning:

I have attached a text file with one hundred thirty six observations. I would like to create a qq plot with the following features:

1. Observed values on the y-axis.
2. Normal approximation line on the plot.
3. X-axis with vertical reference lines at the following percentiles of the data: 1, 10, 20, 50, 80, 90 and 99.
4. Data appearing on the plot as distinct points.

I assume that qqmath (lattice) is the best approach to this although I have not been able to sort out the proper syntax to yield the plot I'm after. I understand how to determine the quantiles of the data, and I can use qqmath() to generate a plot which has the observed values on the y-axis, and the plot is based on a normal distribution, but beyond this I'm struggling.

I do not have the R Graphics text by  or Visualizing Data by Bill Cleveland but I have several other R books (Crawley, Ugarte et al, Braun/Murdoch, Rizzo, etc) but coverage of the lattice package seems light.

I very much appreciate any help that could be offered.

Thank you.

Adam


      
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: TUS.txt
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20091228/d5530525/attachment-0002.txt>


More information about the R-help mailing list