Features
Interactive lens dragging: Click and drag anywhere on the map
to reposition the fisheye lens in real-time
Parameter controls: Adjust inner radius (focus), outer radius
(glue), zoom factor, and squeeze factor
Facility sampling: Randomly sample healthcare facilities and
residential aged care facilities (RACFs) with adjustable sample size
Transfer visualization: Toggle display of patient transfer
connections between facilities
Side-by-side comparison: Compare fisheye-transformed and
original static views
Requirements
The Shiny app requires the following suggested packages:
shiny
tidyr
dplyr
purrr
ggthemes
If any are missing, install with:
install.packages(c("shiny", "tidyr", "dplyr", "purrr", "ggthemes"))
Implementation Notes
The app uses client-side JavaScript for smooth lens dragging without
server round-trips. Fisheye transformations match the mathematical
implementation in fisheye_fgc() and sf_fisheye(), applied to
polygons, lines, and points in real-time using SVG rendering.