Re: [R] Question:shardsplot (package:klaR)

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Sun 22 Oct 2006 - 09:39:02 GMT

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



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 19:55:33 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 - 11: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.