powered by
## S3 method for class 'kmeans': fortify(model, data = NULL, ...)
kmeans
cmdscale
data
k1 <- kmeans(x=iris[, 1:4], centers=3) hold <- fortify(k1, data=iris) head(hold) hold2 <- fortify(k1) head(hold2)
Run the code above in your browser using DataLab