City Research Online

gridmappr: An R package for creating small multiple gridmap layouts

Beecham, R., Tennekes, M. & Wood, J. ORCID: 0000-0001-9270-247X (2025). gridmappr: An R package for creating small multiple gridmap layouts. Environment and Planning B: Urban Analytics and City Science, 53(3), pp. 487-493. doi: 10.1177/23998083251374737

Abstract

We present gridmappr, an R package that automates the process of generating gridmaps – small multiple data graphics of regular size, laid out with an approximate geographic arrangement. Given a set of real geographic point locations, gridmappr allocates points to a regularly sized grid of stated row–column dimensions. This allocation is constrained such that the distance between points in real and grid space is minimised and with a parameter that affects how compactly points are allocated to the regular grid. For geographies with features such as large bodies of water, fixed spacers can be introduced – reserved cells that cannot be allocated points. Layout examples are presented using different parameterisations, and code for generating a family of information-rich glyphmap and origin-destination maps is demonstrated using standard ggplot2.

Publication Type: Article
Additional Information: © The Author(s) 2025. This article is distributed under the terms of the Creative Commons Attribution 4.0 License (https://creativecommons.org/licenses/by/4.0/) which permits any use, reproduction and distribution of the work without further permission provided the original work is attributed as specified on the SAGE and Open Access page (https://us.sagepub.com/en-us/nam/open-access-at-sage).
Publisher Keywords: geovisualisation, gridmaps, cartograms, origin-destination, grammar of graphics
Subjects: Q Science > QA Mathematics > QA75 Electronic computers. Computer science
Departments: School of Science & Technology
School of Science & Technology > Department of Computer Science
SWORD Depositor:
[thumbnail of beecham-et-al-2025-gridmappr-an-r-package-for-creating-small-multiple-gridmap-layouts.pdf]
Preview
Text - Published Version
Available under License Creative Commons Attribution.

Download (1MB) | Preview

Export

Add to AnyAdd to TwitterAdd to FacebookAdd to LinkedinAdd to PinterestAdd to Email

Downloads

Downloads per month over past year

View more statistics

Actions (login required)

Admin Login Admin Login