I apply isoMDS to my data, but the result turns out to be bad as the stress
value stays around 31! Yeah, 31 ,not 3.1... I don't know if I ignore
something before recall isoMDS.
My code as follow:

m <- read.table("e:/tsdata.txt",header=T,sep=",")
article_number <- ts(m, start = 2004,end=2008, frequency = 1
,names=colnames(m))
jpeg(filename="e:/tsmap.gif",width = 480, height = 480, units = "px",
pointsize = 12, quality = 75, bg = "white", res = NA, restoreConsole = TRUE)
plot(article_number, plot.type="single",
lty=c(1,1,1,1,1),col=c(1,2,3,4,5),las=1)
max<-range(m)
x<-c(2004,2004,2004,2004,2004)
y<-c(max[2]*0.96,max[2]*0.9199999999999999,max[2]*0.88,max[2]*0.84,max[2]*0.7999999999999999)
points(x,y,col=c(1,2,3,4,5),pch=15)
text(x,y,colnames(m),pos=4,offset=0.4)
dev.off()

A 40*40 matrix in "e:/tsdata.txt". How should I do to improve the effect?
Thank you!

        [[alternative HTML version deleted]]

______________________________________________
[email protected] 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.

Reply via email to