Dear mahe,

This is, I assume, the scatterplotMatrix() function in the car package.

I don't think that you'll be able to do what you want with scatterplotMatrix(), 
because it uses the pairs() function, which resets par("mfrow"). For the same 
reason, using pairs() directly won't help. You should, however, and with some 
work, be able to do what you want using splom() in the lattice package.

I hope this helps,
 John

------------------------------------------------
John Fox, Professor
McMaster University
Hamilton, Ontario, Canada
http://socserv.mcmaster.ca/jfox/
        
On Tue, 22 Jul 2014 13:13:14 +0300
 MLSC <mlscm...@gmail.com> wrote:
> Hello Friends,
> 
> I want to put two plots of scatterplotMatrix side by side in one plot.
> I have tried below command. But somehow below code doesnt join them
> together side by side.
> 
> > par(mfrow=c(1,2));
> > scatterplotMatrix(~ SBP + DBP + Leptin +WC+BMI+Weight | 
> > factor(dat2$rs3827103), data=dat2,diagonal='none', 
> > pch=c(18),smoother=FALSE,reg.line=lm)
> > scatterplotMatrix(~ SBP + DBP + Leptin +WC+BMI+Weight | 
> > factor(dat1$rs3827103), data=dat1,diagonal='none', 
> > pch=c(18),smoother=FALSE,reg.line=lm)
> 
> Can anybody suggest me a way to join them together side by side.
> 
> Regards,
> 
> mahe
> 
>       [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help@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.

______________________________________________
R-help@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.

Reply via email to