Visualizing GeoData with R


  • Jan-Philipp Kolb GESIS



The processment of information related to a geographic location has long been difficult due to lacking data sources and processing power. The recent changes in the rise of web-based technologies like OpenStreetMap (OSM) and Google Maps change the picture.

With R it is possible to execute a large amount of data and to produce appropriate visualisations. The challenge is to find the necessary spatial information. In this paper an overview is given to reflect the possibilities spatial visualisations in the context of social sciences. Moreover, it provides an introduction to spatial visualisation.

Sources for spatial data and methods of data collection are described and examples of visualisations are presented.



Almquist ZW (2010). “US Census spatial and demographic data in R: the UScensus2000 suite of packages.” Journal of Statistical Software, 37, 1-31.

Becker RA, Wilks AR, Brownrigg R, Minka TP (2013). “maps: Draw Geographical Maps.” URL http://CRAN. R-project. org/package= maps. R package version, pp. 2-3.

Behrisch M, Bieker L, Erdmann J, Krajzewicz D (2011). “Sumo-simulation of urban mobility an overview." In SIMUL 2011, The Third International Conference on Advances in System Simulation, pp. 55-60.

Bivand RS (2006). “Implementing spatial data analysis software tools in R.” Geographical Analysis, 38(1), 23-40.

Bivand RS (2007). “Using the R-GRASS interface.” OSGeo Journal, 1, 36-38.

Bivand RS (2011). “Geocomputation and open source software: components and software stacks."

Bivand RS, Gomez-Rubio V, Rue H (2014). “Some Spatial Statistical Extensions to R-INLA.” Journal of Statistical Software.

Bivand RS, Pebesma EJ, Gomez-Rubio V (2008). “Applied Spatial Data Analysis with R.” Springer, New York.

Blangiardo M, Cameletti M, Baio G, Rue H (2013). “Spatial and spatio-temporal models with R-INLA." Spatial and spatio-temporal epidemiology, 7, 39-55.

Endel F, Filzmoser P (2012). “R & GIS: Geospatial Plotting.” Mathematical Modelling, volume 7, pp. 618-623.

Eugster MJ, Schlesinger T (2012). “osmar: OpenStreetMap and R." The R Journal, 5(1), 53-63.

Gibson R, Erle S (2006). “Google maps hacks.“ O'Reilly Media, Inc.

Haklay M (2010). “How good is volunteered geographical information? A comparative study of OpenStreetMap and Ordnance Survey datasets." Environment and planning. B, Planning & design, 37(4), 682.

Haklay M, Weber P (2008). “Openstreetmap: User-generated street maps." Pervasive Computing, IEEE, 7(4), 12-18.

Hijmans RJ, van Etten J (2014). “raster: Geographic data analysis and modeling." R package version 2.3-12, URL http://CRAN. R-project. org/package= raster

Kaczmirek L, Mayr P, Vatrapu R, Bleier A, Blumenberg M, Gummer T, Hussain A, Kinder-Kurlanda K, Manshaei K, Thamm M, et al. (2013). “Social media monitoring of the campaigns for the 2013 german bundestag elections on facebook and twitter." arXiv preprint arXiv:1312.4476.

Kahle D, Wickham H (2013). “ggmap: Spatial Visualization with ggplot2.” R Journal, 5(1).

Keitt TH, Bivand R, Pebesma E, Rowlingson B (2011). “rgdal: bindings for the Geospatial Data Abstraction Library." R package version 0.7-1, URL http://CRAN. rgdal.

Kennedy MD (2013). “Introducing geographic information systems with ARCGIS: a workbook approach to learning GIS.” John Wiley & Sons.

Lees J (2008). “GEOmap: topographic and geologic mapping.” R package version 2.2-2, URL http://CRAN. R-project. org/package=GEOmap.

Leipzig J, Li XY (2011). “Data Mashups in R.” O'Reilly Media, Inc.

Lewin-Koh NJ, Bivand R, Pebesma E, Archer E, Baddeley A, Bibiko H, Dray S, Forrest D, Friendly M, Giraudoux P, et al. (2011). “maptools: Tools for reading and handling spatial objects." R package version 0.8-10, URL http://CRAN. R-project. org/package= maptools.

Lovelace R, Cheshire J (2014). “Introduction to visualising spatial data in R." National Centre for Research Methods.

Neis P, Zielstra D, Zipf A (2011). “The street network evolution of crowdsourced maps: OpenStreetMap in Germany 2007-2011.” Future Internet, 4(1), 1-21.

Pebesma E, Bivand R, Rowlingson B, Gomez-Rubio V (2013). “sp: classes and methods for spatial data.” R package version 1.0-15, URL http://CRAN. R-project. org/package=sp

Pitzl GR (2004). “Encyclopedia of human geography.” Greenwood Publishing Group.

Scharl A, Tochtermann K (2009). “The geospatial web: how geobrowsers, social software and the Web 2.0 are shaping the network society.” Springer.

Schlesinger T (2011). “OpenStreetMap in R-Freie Räumliche Daten für geostatistische Analysen.“ Ph.D. thesis, Institut für Statistik.

Sizov S (2010). “Geofolk: latent spatial semantics in web 2.0 social media." In Proceedings of the third ACM international conference on Web search and data mining, pp. 281-290.

Yee R, Moodle M (2008). “Pro web 2.0 mashups." Remixing Data and Web Services. Apress.

You S, DesArmo J, Joo S (2013). “Measuring happiness of US cities by mining user-generated text in A pilot analysis." Proceedings of the American Society for Information Science and Technology, 50(1), 1-4.




How to Cite

Kolb, J.-P. (2016). Visualizing GeoData with R. Austrian Journal of Statistics, 45(1), 45–54.



Special Issue on R