Runs DBSCAN on rotated-km coordinates and colours points by cluster
label, with noise rendered grey. Requires the suggested dbscan
package; without it a base-graphics single-colour fallback is drawn.
Usage
morie_tps_render_dbscan(
points_df,
eps_km = 0.5,
min_samples = 8L,
outfile = NULL,
...
)
Arguments
- points_df
data.frame with columns lat / lon (or LAT_WGS84
/ LONG_WGS84).
- eps_km
DBSCAN epsilon in kilometres.
- min_samples
Minimum samples per cluster.
- outfile
Optional output path.
- ...
Extra plotting args (size, alpha, palette).
Value
ggplot object or invisible NULL.