Learn R Programming

mapycusmaximus (version 1.0.7)

conn_fish: Fisheye-Distorted Hospital–RACF Connections (sf)

Description

An example LINESTRING layer showing hospital–RACF transfer routes after applying a Focus–Glue–Context (FGC) fisheye warp. It demonstrates how line geometries can be spatially distorted in sync with polygon layers to visualize flow patterns within the magnified focus zone.

Usage

conn_fish

Arguments

Format

An sf object with:

weight

Numeric, representing transfer magnitude or connection strength.

geometry

LINESTRING geometries in projected CRS (EPSG:3111).

Details

Built from hospital–RACF coordinate pairs in data-raw/transfers_coded.csv using:

  1. connection creation via make_connections() to form LINESTRINGs,

  2. projection to VicGrid94 (EPSG:3111),

  3. distance-based filtering to keep only sources within r_in = 0.34 of the focus point (cx = 145.0, cy = -37.8),

  4. fisheye transformation using sf_fisheye() with r_in = 0.428, r_out = 0.429, and zoom_factor = 1.

The resulting object aligns spatially with vic_fish, allowing co-visualization of regional flow intensity within the distorted focus region.

See Also

sf_fisheye(), vic_fish

Examples

Run this code
library(sf)
plot(st_geometry(vic_fish), col = "grey95", border = "grey70")
plot(st_geometry(conn_fish), add = TRUE, col = "black", lwd = 1)

Run the code above in your browser using DataLab