Computational Statistics

, Volume 34, Issue 4, pp 1449–1464 | Cite as

Putting down roots: a graphical exploration of community attachment

  • Andee J. KaplanEmail author
  • Eric R. Hare
Original Paper


In this paper, we explore the relationships that individuals have with their communities. This work was prepared as part of the ASA Data Expo ‘13 sponsored by the Graphics Section and the Computing Section, using data provided by the Knight Foundation Soul of the Community survey. The Knight Foundation in cooperation with Gallup surveyed 43,000 people over 3 years in 26 communities across the United States with the intention of understanding the association between community attributes and the degree of attachment people feel towards their community. These include the different facets of both urban and rural communities, the impact of quality education, and the trend in the perceived economic conditions of a community over time. The goal of our work is to facilitate understanding of why people feel attachment to their communities through the use of an interactive and web-based visualization. We will explain the development and use of web-based interactive graphics, including an overview of the R package Shiny and the JavaScript library D3, focusing on the choices made in producing the visualizations and technical aspects of how they were created. Then we describe the stories about community attachment that unfolded from our analysis.


Soul of the Community Data Expo 2013 Interactive graphics Shiny D3 



  1. Becker R, Wilks A (2013) maps: draw geographical maps. R package version 2.3-6
  2. Bostock M, Ogievetsky V, Heer J (2011) D3: data-driven documents. In: IEEE transactions visualization and computer graphics (Proc. InfoVis). Accessed 31 Mar 2014CrossRefGoogle Scholar
  3. Buja A, McDonald J, Michalak J, Stuetzle W (1991) Interactive data visualization using focusing and linking. In: Proceedings of ieee conference on visualization, 1991. Visualization’91. IEEE, pp 156–163Google Scholar
  4. Couture-Beil A (2013) rjson: JSON for R. R package version 0.2.13
  5. Hofmann H, Wickham H, Cook D (2019) The 2013 data expo of the American Statistical Association. Comput Stat 34(4)Google Scholar
  6. RStudio Inc. (2013) shiny: web application framework for R. R package version 0.4.0
  7. The Knight Foundation (2014) Soul of the community. Accessed 31 Mar 2014
  8. The United States Census Bureau (2014) Census regions and divisions of the United States. Accessed 31 Mar 2014
  9. Tukey J (1977) Exploratory data analysis. Addison-Wesley, ReadingzbMATHGoogle Scholar
  10. Wickham H (2007) Reshaping data with the reshape package. J Stat Softw 21(12):1–20.
  11. Wickham H (2009) ggplot2: elegant graphics for data analysis. Springer, New York. ISBN 978-0-387-98140-6. Accessed 31 Mar 2014
  12. Wickham H (2011) The split-apply-combine strategy for data analysis. Journal of Statistical Software, 40(1): 1–29 URL

Copyright information

© Springer-Verlag GmbH Germany, part of Springer Nature 2018

Authors and Affiliations

  1. 1.Department of StatisticsIowa State UniversityAmesUSA

Personalised recommendations