Visualize clustering results using first two dimensions or specified dimensions
plot_clusters(
data,
cluster_col = "cluster",
x_col = NULL,
y_col = NULL,
centers = NULL,
title = "Cluster Plot",
color_noise_black = TRUE
)A ggplot object
A data frame with cluster assignments
Name of cluster column (default: "cluster")
X-axis variable (if NULL, uses first numeric column)
Y-axis variable (if NULL, uses second numeric column)
Optional data frame of cluster centers
Plot title
If TRUE, color noise points (cluster 0) black