Mapping and Measuring Country Shapes

The article introduces the cshapes R package, which includes our CShapes dataset of contemporary and historical country boundaries, as well as computational tools for computing geographical measures from these maps. We provide an overview of the need for considering spatial dependence in comparative research, how this requires appropriate historical maps, and detail how the cshapes associated R package cshapes can contribute to these ends. We illustrate the use of the package for drawing maps, computing spatial variables for countries, and generating weights matrices for spatial statistics.

Nils B. Weidmann , Kristian Skrede Gleditsch


Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".


For attribution, please cite this work as

Weidmann & Gleditsch, "The R Journal: Mapping and Measuring Country Shapes", The R Journal, 2010

BibTeX citation

  author = {Weidmann, Nils B. and Gleditsch, Kristian Skrede},
  title = {The R Journal: Mapping and Measuring Country Shapes},
  journal = {The R Journal},
  year = {2010},
  note = {},
  doi = {10.32614/RJ-2010-004},
  volume = {2},
  issue = {1},
  issn = {2073-4859},
  pages = {18-24}