IDEAS home Printed from https://ideas.repec.org/a/sae/envirb/v52y2025i2p509-517.html

Spnaf: An R package for analyzing and mapping the hotspots of flow datasets

Author

Listed:
  • Hui Jeong Ha
  • Youngbin Lee
  • Kyusik Kim
  • Sohyun Park
  • Jinhyung Lee

Abstract

This paper introduces {spnaf} (spatial network autocorrelation for flows), an R package designed for the hotspot analysis of flow (e.g., human mobility, transportation, and animal movement) datasets based on Berglund and Karlström’s G index. We demonstrate the utility of the {spnaf} package through two example analyses by data forms: 1) bike-sharing trip patterns in Columbus, Ohio, USA, using polygon data, and 2) U.S. airports’ passenger travel patterns, using point data. The {spnaf} is available for download from the Comprehensive R Archive Network (CRAN), which contains a vignette and sample data/code for immediate use. This package addresses limitations in existing spatial analysis packages and emphasizes its efficiency in detecting flow hotspots. It is highly applicable in various urban and geographic data science applications. {spnaf} is still in its early stages and we hope that interested readers can contribute to the development and enhancement of the package.

Suggested Citation

  • Hui Jeong Ha & Youngbin Lee & Kyusik Kim & Sohyun Park & Jinhyung Lee, 2025. "Spnaf: An R package for analyzing and mapping the hotspots of flow datasets," Environment and Planning B, , vol. 52(2), pages 509-517, February.
  • Handle: RePEc:sae:envirb:v:52:y:2025:i:2:p:509-517
    DOI: 10.1177/23998083241276021
    as

    Download full text from publisher

    File URL: https://journals.sagepub.com/doi/10.1177/23998083241276021
    Download Restriction: no

    File URL: https://libkey.io/10.1177/23998083241276021?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Yongwan Chun, 2008. "Modeling network autocorrelation within migration flows by eigenvector spatial filtering," Journal of Geographical Systems, Springer, vol. 10(4), pages 317-344, December.
    2. Svante Berglund & Anders Karlström, 1999. "Identifying local spatial association in flow data," Journal of Geographical Systems, Springer, vol. 1(3), pages 219-236, October.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Shengwen Li & Xinyue Ye & Xiao Huang & Junfang Gong & Jay Lee & Suzhen Huang & Ling Wu, 2025. "Estimation of global and regional patterns of flows," The Annals of Regional Science, Springer;Western Regional Science Association, vol. 74(4), pages 1-18, December.
    2. Matthias Eckardt & Jorge Mateu, 2021. "Second-order and local characteristics of network intensity functions," TEST: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 30(2), pages 318-340, June.
    3. Jinzhao Song & Qing Feng & Xiaoping Wang & Hanliang Fu & Wei Jiang & Baiyu Chen, 2018. "Spatial Association and Effect Evaluation of CO 2 Emission in the Chengdu-Chongqing Urban Agglomeration: Quantitative Evidence from Social Network Analysis," Sustainability, MDPI, vol. 11(1), pages 1-19, December.
    4. Daniel A. Griffith & Manfred M. Fischer, 2016. "Constrained Variants of the Gravity Model and Spatial Dependence: Model Specification and Estimation Issues," Advances in Spatial Science, in: Roberto Patuelli & Giuseppe Arbia (ed.), Spatial Econometric Interaction Modelling, chapter 0, pages 37-66, Springer.
    5. Qing Luo & Daniel A. Griffith & Huayi Wu, 2019. "Spatial autocorrelation for massive spatial data: verification of efficiency and statistical power asymptotics," Journal of Geographical Systems, Springer, vol. 21(2), pages 237-269, June.
    6. Oshan, Taylor M., 2022. "Spatial Interaction Modeling," OSF Preprints m3ah8, Center for Open Science.
    7. Tamara Mata & Carlos Llano, 2013. "Social networks and trade of services: modelling interregional flows with spatial and network autocorrelation effects," Journal of Geographical Systems, Springer, vol. 15(3), pages 319-367, July.
    8. Elise Desjardins & Christopher D. Higgins & Darren M. Scott & Emma Apatu & Antonio Páez, 2022. "Correlates of bicycling trip flows in Hamilton, Ontario: fastest, quietest, or balanced routes?," Transportation, Springer, vol. 49(3), pages 867-895, June.
    9. Tao Cheng & James Haworth & Jiaqiu Wang, 2012. "Spatio-temporal autocorrelation of road network data," Journal of Geographical Systems, Springer, vol. 14(4), pages 389-413, October.
    10. Paula Margaretic & Christine Thomas-Agnan & Romain Doucet, 2017. "Spatial dependence in (origin-destination) air passenger flows," Papers in Regional Science, Wiley Blackwell, vol. 96(2), pages 357-380, June.
    11. Dieter von Fintel & Eldridge Moses, 2017. "Migration and gender in South Africa: following bright lights and the fortunes of others?," Working Papers 09/2017, Stellenbosch University, Department of Economics, revised 2018.
    12. Daniele Fabbri & Silvana Robone, 2010. "The geography of hospital admission in a national health service with patient choice," Health Economics, John Wiley & Sons, Ltd., vol. 19(9), pages 1029-1047, September.
    13. Paolo Berta & Gianmaria Martini & Daniele Spinelli & Giorgio Vittadini, 2022. "The beaten paths effect on patient inter‐regional mobility: An application to the Italian NHS," Papers in Regional Science, Wiley Blackwell, vol. 101(4), pages 945-977, August.
    14. F. Bavaud & M. Kordi & C. Kaiser, 2018. "Flow autocorrelation: a dyadic approach," The Annals of Regional Science, Springer;Western Regional Science Association, vol. 61(1), pages 95-111, July.
    15. Giuseppe Ricciardo Lamonica & Barbara Zagaglia, 2013. "The determinants of internal mobility in Italy, 1995-2006," Demographic Research, Max Planck Institute for Demographic Research, Rostock, Germany, vol. 29(16), pages 407-440.
    16. Oshan, Taylor M., 2020. "The spatial structure debate in spatial interaction modeling: 50 years on," OSF Preprints 42vxn, Center for Open Science.
    17. Yongwan Chun, 2008. "Modeling network autocorrelation within migration flows by eigenvector spatial filtering," Journal of Geographical Systems, Springer, vol. 10(4), pages 317-344, December.
    18. Daisuke Murakami & Daniel Griffith, 2015. "Random effects specifications in eigenvector spatial filtering: a simulation study," Journal of Geographical Systems, Springer, vol. 17(4), pages 311-331, October.
    19. Aurélien Fichet de Clairfontaine & Manfred Fischer & Rafael Lata & Manfred Paier, 2015. "Barriers to cross-region research and development collaborations in Europe: evidence from the fifth European Framework Programme," The Annals of Regional Science, Springer;Western Regional Science Association, vol. 54(2), pages 577-590, March.
    20. François Bavaud, 2013. "Testing spatial autocorrelation in weighted networks: the modes permutation test," Journal of Geographical Systems, Springer, vol. 15(3), pages 233-247, July.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:sae:envirb:v:52:y:2025:i:2:p:509-517. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: SAGE Publications (email available below). General contact details of provider: .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.