powered by
Displays the medoids of each PAM cluster using a polar radar chart.
plot_radar(data, clusters)
A ggplot object showing the radar chart of cluster medoids.
A numeric matrix or data frame for clustering.
An integer indicating the number of clusters.
data <- scale(iris[, 1:4]) if (interactive()) { plot_radar(data, clusters = 3) }
Run the code above in your browser using DataLab