| plot_radar | R Documentation |
Displays the medoids of each PAM cluster using a polar radar chart.
plot_radar(data, clusters)
data |
A numeric matrix or data frame for clustering. |
clusters |
An integer indicating the number of clusters. |
A ggplot object showing the radar chart of cluster medoids.
data <- scale(iris[, 1:4])
if (interactive()) {
plot_radar(data, clusters = 3)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.