[R] pairs plots in R

Felix Andrews felix at nfrac.org
Mon Oct 20 05:37:10 CEST 2008


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