शुरू करेंमुफ़्त में शुरू करें

Comparing average, single & complete linkage

You are now ready to analyze the clustering results of the lineup dataset using the dendrogram plot. This will give you a new perspective on the effect the decision of the linkage method has on your resulting cluster analysis.

यह अभ्यास पाठ्यक्रम का हिस्सा है

Cluster Analysis in R

पाठ्यक्रम देखें

अभ्यास निर्देश

  • Perform the linkage calculation for hierarchical clustering using the linkages: complete, single, and average.
  • Plot the three dendrograms side by side and review the changes.

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

# Prepare the Distance Matrix
dist_players <- dist(lineup)

# Generate hclust for complete, single & average linkage methods
hc_complete <- ___
hc_single <- ___
hc_average <- ___

# Plot & Label the 3 Dendrograms Side-by-Side
# Hint: To see these Side-by-Side run the 4 lines together as one command
par(mfrow = c(1,3))
plot(___, main = 'Complete Linkage')
plot(___, main = 'Single Linkage')
plot(___, main = 'Average Linkage')
कोड संपादित करें और चलाएँ