1 Welcome


Organisation: Data Science Platform
Responsibles: Juliana Assis ()
Andre Cunha ()
Alberto Pallejà Caro ()


Welcome to the Data Visualization using R Workshop!

This workshop introduces data visualization in R using the simplest ggplot2, plotly. We will cover both theory and practical exercises.

Goals

  • Understand R visualization grammar
  • Produce publication-ready plots
  • Explore real datasets

You can also visit the Data Visualization in Python

Time Session
9:00 – 9:10 Hello, coffee, and setup
🔄 9:10 – 9:25 Introduction to Data Visualization
🧩 9:25 – 10:25 For Beginners: ggplot2 grammar
⏸️ 10:25 – 10:40 Break
💬 10:40 – 11:25 For Intermediate: plotly and markdown report (R Notebooks)
11:25 – 11:40 Short break
♾️ 11:40 – 12:30 For Advanced: The R Universe of tidyverse

Material for the workshp is located at: WorkshopDataVizR

Below are two setup options to the pratical activities:

Run the workshop in the cloud (no need to install anything).

Launch the app:

Open in GitHub Codespaces

Run the workshop locally on your machine.

To run it in your own machine install the following packages:

# List of required CRAN packages
packages <- c(
  "dplyr",
  "ggplot2",
  "ggrepel",
  "RColorBrewer",
  "rmarkdown",
  "tidyr",
  "plotly"
)

# Install missing packages
install_if_missing <- function(pkg) {
  if (!requireNamespace(pkg, quietly = TRUE)) {
    install.packages(pkg, repos = "https://cloud.r-project.org/")
  } else {
    message(pkg, " already installed.")
  }
}

# Run installation
invisible(lapply(packages, install_if_missing))

message("All requested R packages are installed and ready to use!")

Slides

Local build of website

You need to clone repository.

git clone https://github.com/biosustain/dsp_workshop_datavizR.git

cd projects

options(error = traceback)
bookdown::render_book("index.Rmd", "bookdown::gitbook")