Learn R Programming

clusterWebApp (version 0.1.3)

plot_radar: Plot Radar Chart for PAM Cluster Centers

Description

Displays the medoids of each PAM cluster using a polar radar chart.

Usage

plot_radar(data, clusters)

Value

A ggplot object showing the radar chart of cluster medoids.

Arguments

data

A numeric matrix or data frame for clustering.

clusters

An integer indicating the number of clusters.

Examples

Run this code
data <- scale(iris[, 1:4])
if (interactive()) {
  plot_radar(data, clusters = 3)
}


Run the code above in your browser using DataLab