October 2017
Beginner to intermediate
572 pages
26h 1m
English
The clusplot function uses princomp and cmdscale to reduce the original feature dimension to the principal component. Therefore, one can see how data is clustered in a single plot with these two components as the x-axis and y-axis. To learn more about princomp and cmdscale, one can use the help function to view related documents:
> help(cmdscale) > help(princomp)
For those interested in how to use cmdscale to reduce the dimensions, please perform the following steps:
> mds = cmdscale(dist(customer), k = 2) > plot(mds, col = fit$cluster)

Read now
Unlock full access