How can I use panel.qqmathline, in package lattice, to add straight lines onto the plots generated by qqmath? [...] > data(sleep) > qqnorm(~ extra | group, data=sleep, aspect=1)
Try
qqmath(~ extra | group, data = sleep, aspect = 1,
distribution = qnorm, prepanel = prepanel.qqmathline,
panel = function(x, y, ...) {
panel.qqmathline(y, distribution = qnorm, ...)
panel.qqmath(x, y, ...)
})Hope this helps, Henric
--------------------------------------------------------------------------------------- Henric Nilsson, Statistician
Statisticon AB, �stra �gatan 31, SE-753 22 UPPSALA Phone (Direct): +46 (0)18 18 22 37 Mobile: +46 (0)70 211 68 36 Fax: +46 (0)18 18 22 33
<http://www.statisticon.se>
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
