Skip to content

Introduction

Learning outcomes

  • Understand the goal of the course
For teachers

Teaching goals are:

  • Learners have heard to goal of the course

Questions at start:

  • What is R?
  • Why use R for plotting?
  • What is ggplot2?
  • Why use ggplot2 for plotting?
  • What is RStudio?
  • Why use RStudio?

Questions at end:

  • Is it OK to work in Python?
  • Is it OK to use AI?
  • Is it OK to use other R libraries for plotting?
  • Is it OK to skip chapters you already know?
  • Is it OK to leave early?

Goal of this course

The goals of this course

Create a plot needed for the Scientific Illustration and Data Visualisation course.

This course is optional.

flowchart TD
  do_you_need_a_plot[Do you need a plot?]
  do_you_want_to_try_yourself[Do you want to try on your own?]
  leave[You are encouraged to leave]
  work_in_breakout_rooms[You are welcome in my breakout rooms now]
  follow_the_course[You are welcome to follow my course structure]

  do_you_need_a_plot --> |No| leave
  do_you_need_a_plot --> |Yes| do_you_want_to_try_yourself
  do_you_want_to_try_yourself --> |Yes| work_in_breakout_rooms
  do_you_want_to_try_yourself --> |No| follow_the_course

This course setup

  • This workshop is aimed at learners from any initial skill level.
  • We use R: this seems to be most common in this course
  • We use R's ggplot2 library: this is the most used plotting library in R and it is very tunable
  • We use a free book, so that you can learn R and ggplot2
  • We use breakout rooms, so we can talk in small groups
  • You can work alone or in a group of two/three
  • Breaks are sacred, the schedule is not Advanced learners will likely finish earlier. Beginner learners will get the extra time and help they need.
  • You are encouraged to leave when you are done and having filled in the course evaluation. Do say bye: it is the human thing to do
  • You can always leave feedback anonymously that will be published: this helps improve the course

Sometimes I will ask for a 'Yes' or 'No' reaction. Here is where you can find these in Zoom:

A 'Yes' or 'No' reaction

Why use R?

R logo

Why use ggplot2?

ggplot2 logo

  • ggplot2 is an R package for plotting
  • ggplot2 is widely used: it is among the top 100 most downloaded R packages
  • ggplot2 has the most commonly used plots available, e.g. those showcased in this gallery
  • ggplot2 has many extensions to plot even more, e.g. those showcased in this gallery
  • ggplot2 uses a grammar of graphics, which allows you to express your plotting needs in code
  • ggplot2 can create publication-ready plots: you will start recognizing them :-)

Vaccination heatmap, from the R Graph gallery

Why use the book 'R for Data Scientists'?

'R for Data Scientists' book cover

  • The book 'R for Data Scientists' is about using R and ggplot2 to visualize data
  • The book is free and open access
  • The book is both digital and in paper
  • The book follows best practices, e.g. the Tidyverse approach