Data Visualisation with R Part 1

BDSI Workshop
Published

April 10, 2024

đź‘‹ Welcome

This is a training workshop for staff and students affiliated with the Australian National University (ANU) offered by the ANU Biological Data Science Institute (BDSI).

The aim of the workshop is to equip participants with the skills to plot using ggplot2, which implements the concept of the “grammar of graphics”. This workshop is designed for those already familiar with R, particularly in data wrangling, but with limited to no experience using ggplot2 for plotting. An understanding of data wrangling in R is expected. Participants without prior experience in data wrangling with R are encouraged to attend the Data Wrangling with R (Part 1) workshop before joining this session. This workshop is not recommended for individuals without any knowledge of data wrangling in R to enroll in this workshop.

🎯 Learning objectives

Upon completion of this workshop, participants should be able to:

  • Create basic plots using ggplot2
  • Understand the concept of the grammar of graphics
  • Construct plots with multiple layers in ggplot2
  • Adjust scales and guides within ggplot2

🔧 Preperation

Please ensure that you download and install

  • the latest version of R,
  • the latest version of RStudio Desktop,
  • (Optional) Slack (alternatively you can use the web version), and
  • the following packages by opening RStudio Desktop, then copy and paste the command below in the Console section, pushing Enter after pasting.
install.packages(c("tidyverse", "palmerpenguins", "agridat", "hexbin", "maps"))
  • For Window users, you may need to install Rtools to install R packages.

If you are having issues, see also here or talk to the teaching team.

Slack workspace (Optional)

We use Slack to facilitate communication between workshop participants and the teaching team.

  • You must use your ANU email to sign up.
  • Use your full name.
  • By joining, you agree to abide by this code of conduct.
  • Please don’t direct message the teaching team in Slack. Your questions are more likely to be answered in the Slack channels rather than in direct messages.

Please note that the teaching team does not necessarily actively monitor or attend to the Slack workspace outside of the workshop.

Teaching team

  • Academic statistician passionate about data science and open source software
  • Currently, Deputy Director of ANU Biological Data Science Institute and Executive Editor of R Journal
  • PhD in Statistical Bioinformatics
  • BSci (Adv Maths) with major in Mathematics and Statistics
  • Loves data and coding

        https://emitanaka.org     @statsgen     fosstodon.org/@emitanaka

  • 2nd year of PhD student at ANU, working on phylogenomics methods to study hybridisation
  • BSci in Bioinformatics
  • Enjoy hiking and science
  • jeremiasivan
  • (Almost finishing) PhD student @Moritz Lab, E&E Division, RSB, ANU
  • Working on historical biogeography of Indo-Australian birds
  • BSc (Hons) with major in Zoology and Ecology & Conservation
  • Loves games, art markets, and FOOD
  • @goaudreymp
  • https://linktr.ee/goaudreymp
  • 3rd Year PhD student @ Linde Lab, E&E Division, RSB, ANU
  • Investigating the evolution of the Australian orchid flora and associated funga
  • MScSt (Biodiversity Science)
  • Loves playing music, reading, nature
  • @rpodonnell
  • rpodonnell.github.io
  • 2nd Year PhD student @ Sequeira Lab, E&E Division, RSB, ANU
  • Identifying social, collective, or coordinated movement behaviour patterns in sharks using tracking data
  • MSc (Marine Biology), BSc (Biology)
  • Loves triathlon, hiking and the ocean
  • @nilskreuter
  • https://linktr.ee/nilskreuter

Materials

The materials can be found here.

These materials are shared under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

This website is brought to you by the ANU Biological Data Science Institute.