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

From: Greg Snow <Greg.Snow_at_intermountainmail.org>
Date: Thu 05 Apr 2007 - 15:02:43 GMT


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@intermountainmail.org
(801) 408-8111
 
 


> -----Original Message-----
> From: r-help-bounces@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Emmanuel Levy
> Sent: Thursday, April 05, 2007 7:05 AM
> To: r-help@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@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.
>
______________________________________________ R-help@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.
Received on Fri Apr 06 01:20:08 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 05 Apr 2007 - 15:30:48 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.