[R] Lattice: Add abline to Single Value qqmath() Plot
Rich Shepard
rshepard at appl-ecosys.com
Tue May 15 20:26:55 CEST 2012
On Tue, 15 May 2012, David L Carlson wrote:
> Take a look at section 3.3.6 qqmath
> http://www.his.sunderland.ac.uk/~cs0her/Statistics/UsingLatticeGraphicsInR.h
> tm
>
> You need to create a panel function. See sections 2.5.2 and 2.5.3 in the
> second chapter of the Lattice book
> (http://dsarkar.fhcrc.org/lattice/book/chapter2.pdf) available on Deepayan
> Sarkar's webpage.
>
> This is a simple example modified from the example in the lattice package
> manual:
>
> qqmath(~ rnorm(100),
> panel = function(x, ...) {
> panel.qqmathline(x, ...)
> panel.qqmath(x, ...)
> })
David,
Thank you. I do need to learn more about panels in lattice.
Much appreciated,
Rich
More information about the R-help
mailing list