Who found his/her project topic?

Did you practice since the last session?

About this deck

It contains a lot of formatting options displayed in a WHAT YOU CODE IS WHAT YOU GET (WYCIWYG) fashion.
Two elements are key in your learning process:

  • memory: remember that you saw a particular feature so that you can use it later on when you need it;
  • adaptation: be able to adapt code that you see (mine, or on the web) to your particular problem.

That’s all you need to make progress.

Don’t forget: it’s all about storytelling. Always ask yourself: does my graph convey what I have in mind?

Simple plots

Introduction: ggplot

The gg in ggplot means grammar of graphics. It was coined by Leland Wilkinson (see book) and coded in depth by Hadley Wickham, the creator of ggplot.

The power of ggplot is that it decomposes the way graphs are built into simple elements that characterize the graph.

Detailed intros:
https://metricsf20.classes.ryansafner.com/slides/1.3-slides#1
https://github.com/thomasp85/ggplot2_workshop/blob/master/presentation.pdf
https://www.cedricscherer.com/2019/08/05/a-ggplot2-tutorial-for-beautiful-plotting-in-r/

There are currently dozens of extensions of ggplot:
https://exts.ggplot2.tidyverse.org

See also the cool list: https://www.r-graph-gallery.com/index.html

You should also download the ggplot cheatsheet!
https://posit.co/resources/cheatsheets/.
+ https://www.bigbookofr.com/data-visualization.html#ggplot2-elegant-graphics-for-data-analysis

Introduction: graph types (1/3)

Introduction: graph types (2/3)

Introduction: graph types (3/3)

The ggplot cheat sheet is a great place to find inspiration.