I did clustering on my dataset and it works so far.
Now I want to plot the clustering and with this code:
ggplot(mydata, aes(SalesRank, PageRank, colour= booksCluster$cluster))+ geom_point()
I get this result:
Now I want instead of the numbers of the clusters the third column of my origin dataset (e.g. 'XY').
How can I achieve this?
Edit:
Here is my data
$ SalesRank: int 18083 9284 15794 14630 -1 23395 12095 991 653 33717 ...
$ PageRank : num 0.01 0.01241 0.00753 0.00454 0.00301 ...
$ Verlag : Factor w/ 58 levels "-1TION-Z","A-1conda",..: 40 33 33 33 33 57 33