Can I show the result of clustering algorithm with 3 dimensional plot in R?

Viewed 13

I want to cluster my data with method of Kmeans clustering and data of 3 variables. Currently I succeeded to cluster the data, just by running the code in R and want to visualise the result, differing the color of each cluster. But I have no idea to do that. To tell about my code, it is very simple like this :

df.kmeans <- kmeans(df, centers = 100, iter.max = 100000)
df.kmeans$centers
df.kmeans$cluster
scatterplot3d(df[, 1:3],)

I searched the way inserting cluster result into functions that plot to 3 dimensions, but couldn't find anything helpful. If you have an idea, please give me a hand...

0 Answers
Related