Geospatial Distribution Dynamics for Simple Features
Overview
Tools for exploratory geospatial distribution dynamics with 'sf' objects and tidy data. Provides pooled and time-specific classification of longitudinal spatial values, classic discrete Markov transition matrices, spatial Markov matrices conditioned on spatial-lag classes, endpoint and adjacent rank mobility summaries, and 'ggplot2' visualizations. Methods follow Rey (2001) doi:10.1111/j.1538-4632.2001.tb00444.x and Rey et al. (2016) doi:10.1007/s10109-016-0234-x; design is inspired by the Python 'PySAL' 'giddy' package https://pysal.org/giddy/.
Initial CRAN release.
Workflow
classify_dynamics(),markov_dynamics(),spatial_markov(), andrank_mobility()accept longsfpanels keyed by explicitid,time, andvaluecolumns.transition_matrix(),steady_state(),class_intervals(), andlag_intervals()provide tidy access to results.plot_transition_matrix(),plot_spatial_markov(), andplot_rank_mobility()returnggplot2objects.
Spatial weights
spatial_markov()accepts ageometryargument: ansftibble with one row per spatial unit andnb/wtlist-columns produced bysfdep. This is the preferred input.listwandnbarguments remain accepted for compatibility with prior workflows and oracle comparisons.
Show all changes in 0.1.0Hide the rest of the changes in 0.1.0
Data
- Bundled
usjoin: 48 contiguous US state per-capita personal income, 1929–2009, mirroring PySAL's reference dataset for spatial Markov examples.
Validation
- Static fixtures cross-checked against
estdaR::sp.mkv()andspdyn::spMarkov(). Optional live cross-checks run when those packages or PySALgiddyare installed.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- WARNING12 OK, 1 WARNING2026-06-08
- OK5 OK2026-05-31
Documentation
The repository also keeps web-only articles.
- Help pages
- 13 (1 internal)includes a package overview page
- Examples that run
- 100%11 run in a plain check (10 of them under a condition)
- Exported functions with examples
- 91%
- Documented parameters
- 83%
- Return-value docs
- 100%
- Help pages citing references
- 8%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 5
Stars over time
PRs over time
7 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/dshkol/griddy on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-08-02 · The repository has a site deploy workflow
pkgdown site last built 2026-05-26, before release 0.1.0 (2026-05-30)
This repository shows signs of AI coding tools.
- Claude Codefirst seen on or before 2026-04-27Named in .Rbuildignore: .claudeNamed in .gitignore: .claudePull request it wrote: opened by a project memberCommits: at least 7 crediting it in the message
- Claude Fable 57 commits · Jun to Jul 2026
Dependencies
Code & Tests
Datasets
People & History
- 0.1.0Latest2026-05-30 · current release
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-05-30
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.2
- Bundled data
- 7.0 KB / 1 file
- Download size
- 236 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("griddy")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.