Learn R Programming

mapycusmaximus (version 1.0.7)

vic_fish: Fisheye-Distorted Victoria LGAs (sf)

Description

An example polygon layer of Victoria’s Local Government Areas (LGAs) after applying a Focus–Glue–Context (FGC) fisheye transformation. This dataset illustrates how local detail can be magnified around a chosen focus point while maintaining geographic context across the state.

Usage

vic_fish

Arguments

Format

An sf object with:

LGA_NAME

Character, name of the LGA (upper case).

geometry

MULTIPOLYGON / POLYGON geometries in projected CRS (EPSG:3111).

Details

Built from the base layer vic using:

  1. projection to VicGrid94 (st_transform(vic, 3111)),

  2. defining a focus center near Melbourne (cx = 145.0, cy = -37.8),

  3. applying sf_fisheye() with r_in = 0.34, r_out = 0.5, and zoom_factor = 1,

  4. preserving topology with st_make_valid() where needed.

The result is a smoothly warped map emphasizing the metropolitan focus zone.

See Also

sf_fisheye(), conn_fish

Examples

Run this code
library(sf)
plot(st_geometry(vic_fish), col = "grey90", border = "grey50")

Run the code above in your browser using DataLab