Creates a plot to visualize the results of calculate_local_moran.
The default is a 2D snapshot plot. If plot_3d is TRUE, it creates an
interactive 3D plot showing significant clusters in a space-time cube.
Examples
if (FALSE) { # \dontrun{
# First, run the Local Moran's I calculation
moran_result <- sample_roads |>
create_road_network() |>
create_spatiotemporal_network(spatial_length = 0.5) |>
set_events(sample_accidents) |>
calculate_local_moran(dist_threshold = 1, time_threshold = 2)
# --- Plotting Examples ---
# 1. Plot a 2D snapshot for a specific time (e.g., 19:00)
plot_local_moran(moran_result, snapshot_time = 19)
# 2. Plot the full 3D space-time cube
plot_local_moran(moran_result, plot_3d = TRUE)
} # }
