Reattaching original data labels to kmeans cluster for plotting
I am experimenting with using kmeans clusters to examine whether the clusters fall into expected categories or not (specifically examining land cover between areas around species occurrence records and random points). I have created my clusters using kmeans and visualized them using fviz_cluster, but to do this I had to strip my factor variable (occurrence or random) from the numeric dataset (percentage of each land cover type). I would like to reattach this factor variable so that I can plot the labels of each point (occurrence or random) on the fviz_cluster, but I'm new to these functions an
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.