Skip to contents

Renders one centroid-anchored circle per polygon row, sized proportionally to count_col. Useful for showing per-district incident counts without colour-coding the polygons themselves.

Usage

morie_tps_render_district_proportional(
  polys,
  count_col,
  max_radius_km = 3,
  outfile = NULL
)

Arguments

polys

data.frame with one row per polygon, including a centroid_lat / centroid_lon (or LAT_WGS84 / LONG_WGS84) and the count column.

count_col

Name of the numeric column.

max_radius_km

Largest symbol radius in km.

outfile

Optional output path.

Value

ggplot object or invisible NULL.