First my excuses if I keep bugging everyone in this list, but I am a newbie, and tend to find some behaviour that looks unexpected to me; and I would really appreciate to be pointed to some location that allows me to understand more about this software. Here is my next question: > par(mfrow=c(1,1)) > qqnorm(rnorm(20)) > qqmath(rnorm(20)) > par(mfrow=c(3,4)) > for(i in 1:12)qqnorm(rnorm(20)) Until here everything works as expected, and the last line prints 12 samples of qqnorm. However, > for(i in 1:12)qqmath(rnorm(20)) is doing nothing at all. As I wrote, I'd really appreciate the understand where this behaviour comes from. Thanks in advance, Uwe
On 2010-04-15 2:10, Uwe Dippel wrote:> First my excuses if I keep bugging everyone in this list, but I am a > newbie, and tend to find some behaviour that looks unexpected to me; and > I would really appreciate to be pointed to some location that allows me > to understand more about this software. Here is my next question: > > par(mfrow=c(1,1)) > > qqnorm(rnorm(20)) > > qqmath(rnorm(20)) > > par(mfrow=c(3,4)) > > for(i in 1:12)qqnorm(rnorm(20)) > Until here everything works as expected, and the last line prints 12 > samples of qqnorm. However, > > for(i in 1:12)qqmath(rnorm(20)) > is doing nothing at all.You should always tell us what contributed packages you are using. Here, the qqmath function is from pkg:lattice. Now check FAQ 7.22. -Peter Ehlers> > As I wrote, I'd really appreciate the understand where this behaviour > comes from. > > Thanks in advance, > > Uwe > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > >-- Peter Ehlers University of Calgary
Peter Ehlers wrote:>> > par(mfrow=c(1,1)) >> > qqnorm(rnorm(20)) >> > qqmath(rnorm(20)) >> > par(mfrow=c(3,4)) >> > for(i in 1:12)qqnorm(rnorm(20)) >> Until here everything works as expected, and the last line prints 12 >> samples of qqnorm. However, >> > for(i in 1:12)qqmath(rnorm(20)) >> is doing nothing at all. >> > > You should always tell us what contributed packages you are using. > Here, the qqmath function is from pkg:lattice. > Now check FAQ 7.22. >Thanks, Peter! (And to the offline-reply as well!) The question is not completely answered in FAQ 7.22, though: > par(mfrow=c(3,4)) > for(i in 1:12)print(qqmath(rnorm(20))) prints 12 after another; not in (3,4) Why, and how to print 12 samples on a single sheet? Uwe