/dataviz-bssd

Materials for the dataviz course in Barcelona Summer School of Demography

Primary LanguageJavaScriptMIT LicenseMIT

Barcelona Summer School of Demography 2022 week 3 Dataviz – the Art/Skill Cocktail

In the ever-growing universe of dry academic texts, impressive and efficient graphics are quite rare. Driven by widespread software legacy issues and mostly outdated limitations imposed by traditional scientific publishers, researchers often consider producing high quality graphics as a peripheral optional task – “if time allows” (spoiler: it won’t). Yet, modern tools place data visualization in the focus of research workflows when it comes to conveying the results. Hence, the ability to turn a large dataset into an insightful visualization is an increasingly valuable skill in academia.

The course aims to empower the participants with the flexibility that the R+tidyverse framework gives to visualize data (the practical examples mostly use demographic data). The course covers some aspects of data visualization theory and best/worst practice examples, but it's primarily practice oriented including live coding sessions and short lecture/showcase parts.

Practical coding sessions start from basic introduction to tidy data manipulation and ggplot2 basics. Next, practical examples cover the creation of certain most useful types of plots. Important data visualization choices and caveats are discussed along the way. Special attention is devoted to producing geographical maps, which are no longer the luxury of professional cartographers but have turned, with the help of R, into yet another data visualization type. Going beyond ggplot2, the course presents an introduction to interactive data visualization.

Course Twitter account: @DatavizArtSkill

Prerequisites

Outline

Day 1, Monday, July 18: BASICS

  • Basic dataviz principles (slides)
  • Impressive dataviz showcases
  • tidtverse: Tidy approach to data

Day 2, Tuesday, July 19: TUNE-UP

  • ggplot2 basics
  • Colors in dataviz
  • Themes and fonts

Day 3, Wednesday, July 20: TOOLBOX

  • Useful types of plots
  • Dotplots – the most neglected and powerful type of dataviz
  • Heatmaps, equality-line, ggridges, treemap
  • Interactivity: plotly, gganimate

Day 4, Thursday, July 21: MAPS

  • The basics of map projections (slides)
  • With geom_sf maps become yet another type of dataviz
  • Useful spatial processing tricks with rmapshaper
  • biscale maps

Day 5, Friday, July 22: ROCK

  • dataviz challenge in teams
  • brief presentations by teams and discussion
  • course wrap-up

Prerequisites

Links to submit in-class assignments

Useful links