[R] All against all correlation matrix with GGPLOT Facet

Gundala Viswanath gundalav at gmail.com
Mon Jun 10 05:26:44 CEST 2013


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.


More information about the R-help mailing list