Hi Keith,, ggpairs(dat1, upper = list(continuous = "density", combo = "box")) appears to be what you want.
John Kane Kingston ON Canada > -----Original Message----- > From: kw1...@gmail.com > Sent: Tue, 11 Jun 2013 09:25:48 -0400 > To: r-help@r-project.org > Subject: Re: [R] R-help Digest, Vol 124, Issue 12 > > Folks, > > Sorry for butting in here. I ran the code from John Kane below and it > worked fine. > > I did however get a deprecation message suggesting the use of ggpairs > from the GGally package to make this chart. > > Unfortunately I haven't found the correct incantation to get the diagonal > to display the density plots using the "diag" parameter. > > Any suggestions? > > Just trying to learn, > Thanks, > KW > > -- > > On Jun 11, 2013, at 6:00 AM, r-help-requ...@r-project.org wrote: > >> Message: 7 >> Date: Mon, 10 Jun 2013 06:05:48 -0800 >> From: John Kane <jrkrid...@inbox.com> >> To: Gundala Viswanath <gunda...@gmail.com>, "r-h...@stat.math.ethz.ch" >> <r-h...@stat.math.ethz.ch> >> Subject: Re: [R] All against all correlation matrix with GGPLOT Facet >> Message-ID: <3b7b03d1854.000003f5jrkrid...@inbox.com> >> Content-Type: text/plain; charset="US-ASCII" >> >> No image. The R-help list tends to strip out a lot of files. A pdf or >> txt usually gets through. In any case I understand what you want this >> may do it. >> >> library(ggplot2) >> dat1 <- data.frame( v = rnorm(13), >> w = rnorm(13), >> x = rnorm(13), >> y = rnorm(13), >> z = rnorm(13)) >> plotmatrix(dat1) >> >> John Kane >> Kingston ON Canada >> >> >>> -----Original Message----- >>> From: gunda...@gmail.com >>> Sent: Mon, 10 Jun 2013 12:26:44 +0900 >>> To: r-h...@stat.math.ethz.ch >>> Subject: [R] All against all correlation matrix with GGPLOT Facet >>> >>> I have the following data: >>> >>> v <- rnorm(13) >>> w <- rnorm(13) >>> x <- rnorm(13) >>> y <- rnorm(13) >>> z <- rnorm(13) >>> >>> >>> Using GGPLOT facet, what I want to do is to create a 5*5 matrix, >>> where each cells plot the correlation between >>> each pair of the above data. E.g. v-v,v-w; v-x,...,z-z >>> >>> >>> What's the way to do it? >>> Attached is the image. >>> >>> GV. >>> ______________ > > ______________________________________________ > 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. ____________________________________________________________ FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family! Visit http://www.inbox.com/photosharing to find out more! ______________________________________________ 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.