Skip to contents

Renders Kulldorff-style circular candidate windows on the TPS canvas. Currently a thin layer over centroids + radius circles; the full likelihood-ratio overlay and significance ranking depend on the Python morie.tps_satscan module and are stubbed.

Usage

morie_tps_render_satscan_panel(clusters, outfile = NULL)

Arguments

clusters

data.frame with columns lat / lon / radius_km and optionally llr (log-likelihood ratio) for shading.

outfile

Optional output path.

Value

ggplot object or invisible NULL.

Examples

clusters <- data.frame(lat = c(43.70, 43.75), lon = c(-79.40, -79.30),
                       radius_km = c(1.5, 2.2))
out <- morie_tps_render_satscan_panel(clusters,
                                      outfile = tempfile(fileext = ".png"))