Make pretty graphics - learn to ggplot in R
workshop
code along
reproducibility
R
ggplot
Session 24 in the series Basic Biostatistics and Bioinformatics
In this session you can learn more about R’s data visualization package ggplot. The workshop will answer the following questions:
- Why ggplot (difference between base plot and ggplot2)?
- How do you make plots using ggplot2 in R?
- How do you customize and modify plots?
What to Expect:
- Learn Grammar of the graphics & synatx
- Build a graph (data visualization) from the scratch
- Describe Geometric components of a graph
- Produce different kinds of plot (scatter plots, boxplots, barplots etc) using ggplot.
- Describe what faceting is and apply faceting in ggplot.
- Modify the aesthetics of an existing ggplot plot (including theme, axis labels, stats and color etc).
- Combine and save plots as publishable figures.
Topic: Introduction to ggplot in R
When: Monday, 7th of April, 09:45
Where: Camput Ultuna, Tangrisner and online via Zoom (Password: 410 410)
Preparation: Please have R and RStudio installed on your computer. Install ggplot2 by typing install.packages("ggplot2")
into the console of your RStudio.
This session uses the publicly available Penguins data set. You can install the data with: install.packages("palmerpenguins")
.
The material will be available on Github after the session.