Displaying 1 result from an estimated 1 matches for "kmed".
Did you mean:
fmed
2024 Sep 17
1
Getting individual co-ordinate points in k medoids cluster
Hello I am using k medoids in R to generate sets of clusters for datasets
through time. I can plot the individual clusters OK but what I cannot find
is a way of pulling out the co-ordinates of the individual points in the
cluster diagrams - none of the kmed$... info sets seems to be this.
Beneath is an example of a k medoid prog using the built in US arrests
dataset - this is not the data I am working with but it illustrates the
issue easily
library(factoextra)
library(cluster)
set.seed(170924)
df <- USArrests
df <- na.omit(df)
df <- scale(...