map_clusters_ggplot: Render Cluster Map with ggplot2

View source: R/mapping_functions.R

map_clusters_ggplotR Documentation

Render Cluster Map with ggplot2

Description

Internal helper used by map_clusters() when engine = "ggplot". The function takes prepared map data from prepare_map_data() and returns a static ggplot2 map. Locations are drawn from the merged sf object, with clustered locations filled according to their cluster center.

Usage

map_clusters_ggplot(
  md,
  label = c("none", "cluster_centers", "cluster_locations", "all")
)

Arguments

md

named list as returned by prepare_map_data().

label

choice for labeling (defaults to "none")

Value

A ggplot2 object.


gsClusterDetect documentation built on July 27, 2026, 5:09 p.m.