[R] Transform distance constraints into a 2D-map

Greg Snow Greg.Snow at intermountainmail.org
Thu Apr 5 17:02:43 CEST 2007


Look at the cmdscale function (there are variations in some packages,
but that should get you started).


-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at intermountainmail.org
(801) 408-8111
 
 

> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch 
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Emmanuel Levy
> Sent: Thursday, April 05, 2007 7:05 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Transform distance constraints into a 2D-map
> 
> Dear all,
> 
> Could you please point me out to a function or set of 
> functions that would allow me to optimize positions on the 2D 
> map of points for which I are distance contrainted?
> 
> for example, if I have:
>     a   b   c
> a 0.0 0.5 0.7
> b 0.5 0.0 0.3
> c 0.7 0.3 0.0
> 
> I would like to obtain (x,y) coordinates to plot A,B,C so 
> that the distance constraints are satisfied. i.e. a is 0.5 
> far from b, and o.7 far from c. etc ...
> 
> Many thanks for your help,
> 
> Best,
> 
> Emmanuel
> 
> ______________________________________________
> R-help at stat.math.ethz.ch 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