Storytelling with R

talks
R
data visualization
ggplot2

Interactive website and slides on storytelling and data visualization with R from a talk given to a data journalism class at Northeastern.


Author

Mara Averick

Published

2019-03-28


All source code for the website, and the slide PDFs can be found in the talk’s GitHub repository.

Interactive Website

Webpage, Upping your storytelling game…with help from tools that other people already made, features R source code and output for exploratory data analysis, data visualization, and presentation. It features R packages including: skimr (Waring et al. 2022), ggplot2 (Wickham 2016), hrbrthemes (Rudis 2020), gghighlight (Yutani 2023), ggrepel (Slowikowski 2024), gt (Iannone et al. 2024), nbastatR (Bresler 2023), highcharter (Kunst 2024), and gglabeller (Schep 2022).

Screenshot from Upping your storytelling game page shows some R code and a scatterplot of offensive vs. defensive box plus-minus with points labeled using gghighlight and ggrepel packages.

Screenshot from Upping your storytelling game.

Slides

PDF of slides.

Back to top

References

Bresler, Alex. 2023. nbastatR: R’s Interface to NBA Data. https://github.com/abresler/nbastatR.
Iannone, Richard, Joe Cheng, Barret Schloerke, Ellis Hughes, Alexandra Lauer, and JooYoung Seo. 2024. gt: Easily Create Presentation-Ready Display Tables. https://CRAN.R-project.org/package=gt.
Kunst, Joshua. 2024. highcharter: A Wrapper for the ’Highcharts’ Library.
Rudis, Bob. 2020. hrbrthemes: Additional Themes, Theme Components and Utilities for ’ggplot2’. http://github.com/hrbrmstr/hrbrthemes.
Schep, Alicia. 2022. gglabeller: Shiny Gadget for Labelling Points in Ggplots.
Slowikowski, Kamil. 2024. ggrepel: Automatically Position Non-Overlapping Text Labels with ’ggplot2’. https://CRAN.R-project.org/package=ggrepel.
Waring, Elin, Michael Quinn, Amelia McNamara, Eduardo Arino de la Rubia, Hao Zhu, and Shannon Ellis. 2022. skimr: Compact and Flexible Summaries of Data. https://CRAN.R-project.org/package=skimr.
Wickham, Hadley. 2016. ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York. https://ggplot2.tidyverse.org.
Yutani, Hiroaki. 2023. gghighlight: Highlight Lines and Points in ’ggplot2’. https://CRAN.R-project.org/package=gghighlight.

Reuse

Citation

BibTeX citation:
@online{averick2019,
  author = {Averick, Mara},
  title = {Storytelling with {R}},
  date = {2019-03-28},
  url = {https://quartoand.me/talks/2019-03_storytelling-with-r.html},
  langid = {en}
}
For attribution, please cite this work as:
Averick, Mara. 2019. “Storytelling with R.” March 28, 2019. https://quartoand.me/talks/2019-03_storytelling-with-r.html.