[R] Question:shardsplot (package:klaR)

From: ebi <keisyu_at_gmail.com>
Date: Sun 22 Oct 2006 - 03:27:16 GMT

Dear all,

 I have a question on the shardsplot package:klaR(see the below Example).

Plese tell me the meanings of " logstand <- t((t(logcount) / sdlogcount) * c(1,2,6,5,5,3))", much more.

Why does this example use "c(1,2,6,5,5,3)" ?


# Compute clusters and an Eight Directions Arranged Map for the

# country data. Plotting the result.


     logcount <- log(countries[,2:7])

     sdlogcount <- apply(logcount, 2, sd)

     logstand <- t((t(logcount) / sdlogcount) * c(1,2,6,5,5,3))

     cclasses <- cutree(hclust(dist(logstand)), k = 6)

     countryEDAM <- EDAM(logstand, classes = cclasses, sa = FALSE,

         iter.max = 10, random = FALSE)

     plot(countryEDAM, vertices = FALSE, label = TRUE, stck = FALSE)

Sincerely yours,

        [[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. Received on Sun Oct 22 13:34:31 2006

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 Sun 22 Oct 2006 - 10:30:11 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.