I have a large dataset composed of numerical observations. For this data set, I calculated k-means for which I defined 6 clusters. How can I draw a heatmap, of each cluster? When I try the following, I get an error:
clusters <- kmeans(dataset, 6)
heatmap(clusters$cluster)