Re: [R] plot discriminant analysis

2009-10-14 Thread David Winsemius
On Oct 14, 2009, at 12:24 PM, Alejo C.S. wrote: Hi Alain, thanks for the fast response. I've the same results with iris data, but when I use my data (mentioned in the first message), You are apparently under the false impression that the data made it through the listserv. Read the Posting

Re: [R] plot discriminant analysis

2009-10-14 Thread Alejo C.S.
Hi Alain, thanks for the fast response. I've the same results with iris data, but when I use my data (mentioned in the first message), I have different results. Regards, Alejo 2009/10/14 Alain Guillet > Hi, > > I did it with > > Iris <- data.frame(rbind(iris3[,,1], iris3[,,2], iris3[,,3]), Sp

Re: [R] plot discriminant analysis

2009-10-14 Thread Alain Guillet
Hi, I did it with Iris <- data.frame(rbind(iris3[,,1], iris3[,,2], iris3[,,3]), Sp = rep(c("s","c","v"), rep(50,3))) train <- sample(1:150, 75) table(Iris$Sp[train]) z <- lda(Sp ~ ., Iris, prior = c(1,1,1)/3, subset = train) Then I did plot(z,xlim=c(-10,10),ylim=c(-10,10)) before drawing poi