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.
______________________________________________
[email protected] 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.