Does the pairs2 function in the TeachingDemos package do what you want? -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111
> -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Seyit Ali Kayis > Sent: Wednesday, October 14, 2009 6:35 AM > To: r-help@r-project.org > Subject: [R] pairs > > > Dear all, > > > > I have two sets of data (say set1 and set2) as follow: > > > > set1 > > > > > > > > x1 > x2 > x3 > > 0.30 > 0.43 > 3.88 > > 0.38 > 0.59 > 3.53 > > 0.30 > 0.42 > 2.12 > > 0.33 > 0.53 > 2.12 > > 0.30 > 0.47 > 3.76 > > > > set2 > > > > > > > > y1 > y2 > y3 > > 0.32 > 0.47 > 5.18 > > 0.23 > 0.26 > 1.06 > > 0.42 > 0.65 > 3.88 > > 0.28 > 0.38 > 3.76 > > 0.35 > 0.47 > 1.41 > > > > The "pairs" function (such as pairs(~x1+x2+x3 data=set1, main="Simple > Scatterplot Matrix") ) is producing scatterplot matrix where lower and > upper diagonals have scatter plots of set1 variables. > > > > I want to produce a scatterplot matrix where in upper panel (diagonal) > I should have plots from set1 variables and in lower panel (diagonal) I > should have plots from set2 variables. Is there a way that I can do > this? > > > > Any help is deeply appreciated. > > > > Kind Regards > > > > Seyit Ali > > > > ----------------------------------------------------------------------- > ------------------------------------------- > Dr. Seyit Ali KAYIS > Selcuk University > Faculty of Agriculture > Kampus, Konya, TURKEY > > s_a_ka...@yahoo.com, s_a_ka...@hotmail.com > Tell: +90 332 223 2830 Mobile: +90 535 587 1139 Fax: +90 332 241 0108 > > Greetings from Konya, TURKEY > http://www.ziraat.selcuk.edu.tr/skayis/ > ----------------------------------------------------------------------- > ----------------------------------------------- > > > > > > > > _________________________________________________________________ > > Facebook. > > k-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-nz:SI_SB_2:092010 > [[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.