[R] Question:shardsplot (package:klaR)
Uwe Ligges
ligges at statistik.uni-dortmund.de
Sun Oct 22 11:39:02 CEST 2006
I am forwarding this question to Nils Raabe, the author of shardsplot().
Nils?
Uwe Ligges
ebi wrote:
> 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)" ?
>
> Examples:
>
>
>
> # Compute clusters and an Eight Directions Arranged Map for the
>
> # country data. Plotting the result.
>
> data(countries)
>
> 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,
> Mikio
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
More information about the R-help
mailing list