Mr. Nilsson, Thanks very much for your help!
>From Henric Nilsson <[EMAIL PROTECTED]>: > At 19:52 2003-10-04 +0800, you wrote: > > >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, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This is the part that I did not figure out! Actually, I thought I can leave "distribution = qnorm" out since it is default. > panel = function(x, y, ...) { > panel.qqmathline(y, distribution = qnorm, ...) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Again, I thought "distribution = qnorm" can be left out since it is specified before. Since it causes error without "distribution = qnorm", I was confused by the lines in help(panel.qqmathline): distribution: quantile function for reference theoretical distribution. This is automatically passed in when this is used as a panel function in `qqmath'. I don't understand how the "automatically passed in" can work. > panel.qqmath(x, y, ...) > }) > > Hope this helps, > Henric > > ------------------------------------------------------------------------------ --------- > Henric Nilsson, Statistician > > Statisticon AB, 珺tra 鼙atan 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> > Best regards, Joseph Lu Department of Statistics National Cheng-Kung University Tainan, Taiwan ------------------------------------------------- This mail sent through Seednet Webmail http://webmail.seed.net.tw ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help