Skip to content
Prev 294102 / 398503 Next

QQplots format

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.