emmaSkarstein / resources

A collection of stuff I use all the time and find super useful.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Resources

A collection of stuff I use all the time and find super useful.

Visualization

(plotting with ggplot2, but also general resources that are independnet of software)

General datavis principles

Lisa Charlotte Muth at Datawrapper writes short and really clear articles rich with examples on datavis dos and don’ts, that are general across any graphical tool or programming language. Here is the whole list, but many of them are specifically linked below under the appropriate topics.

Datawrapper | What to think about when creating charts

Fonts

Datawrapper | Which fonts to use for your charts and tables. Amazing introduction, talks about all the parameters that go into a font.

Pimp my type | https://pimpmytype.com/free-quality-fonts/

showtext | Favorite package for fonts in ggplot2 (and rmarkdown-based stuff), you can use any font from Google Fonts

Setting up and debugging custom fonts | ragg, systemfonts, etc., a possible alternative to showtext.

Colors

Datawrapper | What to consider when choosing colors for data visualization

Specific color related topics from Datawrapper:

Color palettes:

  • colorspace: ggplot2 color scales: A very organized R package that lets you set up custom color palettes but also has some built in. Very helpful for continuous color palettes. Contains the darken()/lighten() functions.
  • Canva color palettes: These consist of 4 colors each.
  • Paul Tol's palettes: Good for color blindness, screeen/paper, etc.
  • ColorBrewer: Generate a few different types of simple discrete palettes based on number of categories, sequential/diverging/qualitative, etc.

Types of graphs

Tables

Datawrapper | What to consider when creating tables

gtExtras | Package that expands on the gtpackage for creating tables

Advanced R topics: gt tables Super nice presentation on gt by Ariel Muldoon. The slides are made in Xaringan and also shows off that really well! Part two of the presentation is here (colors, themes, etc.)

kableExtra| Tables for pdfs, useful for academic articles.

Useful packages for ggplot2

patchwork | Combining multiple ggplot objects

ggpubr | Publication ready plots in ggplot2. In particular, I often use this package for adding brackets (geom_bracket()) or theme_transparent() for adding a transparent background (useful for presentations).

showtext | Changing fonts in ggplot2 plots (or anything based on Rmarkdown)

How to Create Engaging and Complex Visualizations in R| Really great ggplot2 workshop by Cédric Scherer, covers many technical aspects of ggplot2.

Cheatsheets

Presentations

Xaringan

My favorite way to make presentations is the Rmarkdown extension https://bookdown.org/yihui/rmarkdown/xaringan.html.

Some xaringan resources:

R package development

Making websites in Quarto (or Distill)

GitHub

  • GitHub actions | For instance, how to trigger (or not trigger) workflows.

Regex

Other people's blogs or websites

About

A collection of stuff I use all the time and find super useful.