[R] Help for MDS !!

A Ezhil ezhil02 at yahoo.com
Fri Nov 4 16:10:11 CET 2005


Hi Sean,

I am sorry for that. I am using the following code for
doing MDS:

groups = list( Day1C=c(1), Day1T=c(2,3,4),
Day2C=c(5,6,7,8,9,10,11,12), Day2T=c(14,15,16,17,18))
len = length(groups)
dist = dist(data, method="euclidean") 
data.mds=isoMDS(dist)
plot(data.mds$points,type = "n",main="MDS plot")
for ( i in 1:len ) 
	text(data.mds$points[groups[[i]] ,], labels =
colnames(data)[groups[[i]]],col=i )

Thanks in Advance.

Regards,
Ezhil

--- Sean Davis <sdavis2 at mail.nih.gov> wrote:

> On 11/2/05 6:42 AM, "A Ezhil" <ezhil02 at yahoo.com>
> wrote:
> 
> > Hi All,
> > 
> > I am trying to apply MDS for 4 groups in my data.
> The
> > groups are:  
> > 
> > groups = list( Day1C=c(9), Day1T=c(7,8,10),
> > Day2C=c(1,2,3,6,11,13,14,15),
> Day2T=c(4,5,12,16,17,18)
> > )
> > 
> > When I do the MDS plot the group1 appears twice
> > instead of one time in the plot. I don't know why
> this
> > is happening.
> > 
> > I would greatly appreciate your help in fixing
> this
> > problem.
> 
> You will need to supply the actual code that you use
> to do the MDS plot.
> Showing a list of groups doesn't really help us
> troubleshoot.
> 
> Sean
> 
>




More information about the R-help mailing list