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

Greg Snow Greg.Snow at imail.org
Wed Aug 18 23:50:57 CEST 2010


Do a search for "multidimensional scaling" and that should give some ideas (use 1-cor or something like that as the distance measure).

Hope this helps,

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of weijian21cn
> Sent: Wednesday, August 18, 2010 3:47 PM
> To: r-help at r-project.org
> Subject: Re: [R] How to measure correlations in terms of distance and
> draw them on a 2-dimmentional plot?
> 
> 
> Probably I put it too complicated.
> 
> I just try to draw 10 points on a plot. Each point stand for one
> variable.
> If two variables are highly correlated, the corresponding dots are to
> be
> drawn closer. Say, variable X1, X2, X3, are highly correlated among
> them, so
> they will be clustered; variables X4, X5, X6 are not much correlated
> with
> X1,X2, X3, so X4-X5 are drawn far away from X1-X3.
> 
> In addition, if corr(X1, X2) > corr(X2,X3), the plot can show
> distance(X1,
> X2) < distance(X2, x3).
> 
> Do you know if R has such a package? Or I may use some plot function
> from
> cluster analysis?
> 
> Thank you!
> 
> 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-tp2330413p2330442.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.



More information about the R-help mailing list