Displaying 2 results from an estimated 2 matches for "datasets01022".
2006 May 10
1
Until the key pressed: FOR-LOOP-Clustering
Hi All,
These are the code that i used to plot the kmeans clustering.
DataSetS01022<-rbind(matrix(rnorm(50),ncol=2),
+ matrix(rnorm(50),ncol=2))
> colnames(DataSetS01022) <-c("timeslot","em")
> (cl <-kmeans(DataSetS01022,2))
>plot (DataSetS01022, col=cl$cluster)
> points(cl$centers, col = 1:2, pch = 8, cex=2)
Now, i would like to do *the s...
2006 May 24
1
dendrogram plotting problem
Dear List
RGui Version : 2.3.0
User : 1 month
I am having the *dendrogram plotting problem *
The code i tried:
>library(cluster)
DD<-DataSetS01022 # 575 x 2 matrix
> VC<-hclust(dist(DD),"ave")
*Warning message:
NAs introduced by coercion* ( what does it mean? Is that the problem?)
> plot(VC,hang=-2)
Output: http://roughjade.blogspot.com
Can anyone guide me? Thanks in advance,
JJ
---
--
Lecturer J. Joshua Thomas
KDU C...