What package is "qqPlot" from? There are at least two that provide a
function by that name.
If you're using grid graphics, this might get you started:
http://gettinggeneticsdone.blogspot.com/2010/03/arrange-multiple-ggplot2-plots-in-same.html
Michael
On Wed, May 9, 2012 at 6:47 PM, arun <smartpink111 at yahoo.com>
wrote:> 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.
>
>
> ______________________________________________
> 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.