[R] Help for par(mfrow)

ctu at bigred.unl.edu ctu at bigred.unl.edu
Wed Sep 3 12:03:03 CEST 2008


Hi, R users
I have a question with par(mfrow). I try to histograms and qqplots  
form boot output for 5 statistics but par(mfrow=c(5,2)) or  
par(mfrow=c(5,1)) does not work. R still display each figure  
separately. What did I do wrong? (I check ?par)
> c1.boot<-boot(c1data,c1.fun,R=999)
> c1.boot

ORDINARY NONPARAMETRIC BOOTSTRAP
Call:
boot(data = c1data, statistic = c1.fun, R = 999)

Bootstrap Statistics :
        original        bias    std. error
t1*  0.30447696  0.0014228306  0.01026153
t2*  0.05967183 -0.0014505285  0.01274977
t3*  1.11852318 -0.0009339349  0.31586852
t4*  4.12856813 -0.0310221125  0.39602210
t5* -1.29958196  0.0222876889  0.67625299

> par(mfrow=c(5,2))
> for (i in 1:5) {plot(c1.boot, index=i, col=i)}
Many Thanks
Chunhao



More information about the R-help mailing list