I am trying to implement k-means clustering using Kmeans in R. I have a data set df containing 4 columns (a,b,c,d). I have implemented k-means clustering using the following code:
result <- Kmeans(df,4,iter.max = 20, nstart = 25, method="euclidean")
When I try to plot the data set using the plot function it shows multiple graph with two attributes each.
plot(df, col=result$cluster)
But I want to plot all the attributes in the same graph. Is it possible? How can I achieve my goal?