Skip to content

belian-earth/a5view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

a5view

Lifecycle: experimental R-CMD-check

Interactive map viewer for A5 geospatial cells, powered by deck.gl. Renders cells directly in the browser using deck.gl’s native A5Layer — no pre-computation of boundaries needed. Intentionally minimal API for fast prototyping and exploration of A5 data.

Installation

# install.packages("pak")
pak::pak("belian-earth/a5view")

Usage

library(a5R)
library(a5view)

# Pick a cell and expand to a disk
cell <- a5_lonlat_to_cell(-3.19, 55.95, resolution = 9)
disk <- a5_grid_disk(cell, k = 10) |>
  a5_uncompact(resolution = 9)

# Colour by distance from centre
a5_view(disk, fill = a5_cell_distance(cell, disk), palette = "Inferno")

Features:

  • Colour mapping from numeric vectors or data frame columns with any hcl.colors() palette
  • Interactive basemap selector (dark, light, OSM, satellite)
  • Opacity slider
  • Tooltip with cell ID on click, fill value on hover
  • Cell border styling
  • 3D extrusion via elevation
  • Shiny bindings (a5_viewOutput / renderA5_view)

About

An R package for creating interactive maps using deck.gl for the a5 geospatial index.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors