[R] How to measure correlations in terms of distance and draw them on a 2-dimmentional plot?

David Winsemius dwinsemius at comcast.net
Wed Aug 18 23:28:20 CEST 2010


On Aug 18, 2010, at 5:11 PM, weijian21cn wrote:

>
> Hi,
>
> Suppose I have n variables, X1, X2, ..., Xn and want to visualize the
> pairwise correlations on a 2-dimmensional plot. In particular, I  
> plan to
> mark down n dots on a piece of paper and  dot i represents Xi, in a  
> way such
> that the highly correlated variables are placed closer; that is,  
> shorter the
> distance between two dots the higher the correlation are between two
> corresponding variables. Do you guys know any R packages can draw such
> plots?

I didn't quite follow wwhat your strategy was but have you looked at  
lattice::splom?
>
> Thank you very much in advance!
>
> Weijian
> -- 
> View this message in context: http://r.789695.n4.nabble.com/How-to-measure-correlations-in-terms-of-distance-and-draw-them-on-a-2-dimmentional-plot-tp2330413p2330413.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list