Dear All,


Would you please tell me how to display the sample No. on the map ?



---Below commands don't display the sample No.(from 1 to 150).---

library(som)

library(klaR)

iris.som3 <- som(iris[,1:4], xdim = 14,ydim = 6)

library(klaR); opar<- par(xpd = NA)

shardsplot(iris.som3, data.or = iris,label = TRUE)

legend(3.5,14.3, col = rainbow(3), xjust =0.5, yjust = 0,legend =
levels(iris[, 5]),pch = 16, horiz = TRUE)

par(opar)

----------------

Ebi

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to