[R] QQplots format

arun smartpink111 at yahoo.com
Thu May 10 00:47:40 CEST 2012


Dear R help,

I tried to plot two qq plots in the same window using the code below.  Somehow it is plotting only one at a time.   I borrowed the print function from xyplot.   




pdf("QQplotCorrUncorr.pdf")
qq1<-qqPlot(residuals(fm), main="QQ plot for Correlated Model")
qq2 <-qqPlot(residuals(fma), main="QQ plot for Uncorrelated Model") 
print(qq1, pos = c(0.0, 0.0, 0.5, 0.5), more = TRUE)
print(qq2, pos = c(0.5, 0.5, 1, 1), more = FALSE )
    

 dev.off()

Help will be appreciated.
Thanks,


A.K.




More information about the R-help mailing list