[R] pairs plots in R

Sharma, Dhruv Dhruv.Sharma at PenFed.org
Mon Oct 20 15:49:27 CEST 2008


Thanks Felix.

Regards,
Dhruv 

-----Original Message-----
From: foolish.android at gmail.com [mailto:foolish.android at gmail.com] On Behalf Of Felix Andrews
Sent: Sunday, October 19, 2008 11:37 PM
To: Sharma, Dhruv
Cc: r-help at r-project.org
Subject: Re: [R] pairs plots in R


One idea:

if the primary variable of interest is a categorical (binary), I would rather look at univariate plots for each of your 100 variables, grouped by the primary one.

e.g.

library(latticeExtra)

marginal.plot(~ myBigDat, data = myBigData,
   groups = myBinaryVar, auto.key = TRUE,
   layout = c(4, 4))

(This is a convenient interface to lattice::densityplot and lattice::dotplot)

If you view 16 such densityplots per page, that still gives you 7 pages. You could use playwith() (from playwith package) to scroll through the pages.

-Felix

2008/10/20 Sharma, Dhruv <Dhruv.Sharma at penfed.org>:
> Hi,
>  is there a way to take a data frame with 100+ columns and large data set to do efficient exploratory analysis in R with pairs?
>
> I find using pairs on the whole matrix is slow and the resulting matrix is tiny.
>
> Also the variable of interest for me is a binary var Y or N .
>
> Is there an efficient way to graphically view many variable relationships that does not look teeny ?
>
> I could do pairs 10 at a time but this seems too brute force.
>
> thanks
> Dhruv
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>



--
Felix Andrews / 安福立
http://www.neurofractal.org/felix/
3358 543D AAC6 22C2 D336  80D9 360B 72DD 3E4C F5D8


More information about the R-help mailing list