Summary and Schedule
This is a new lesson built with The Carpentries Workbench.
| Setup Instructions | Download files required for the lesson | |
| Duration: 00h 00m | 1. Introduction to R |
Why might you prefer to run code in a script rather than directly from
the console? What is the assignment operator and how can you use it to store objects? |
| Duration: 00h 40m | 2. Exploring the Data |
How can I load data from CSV or TSV files into R? What are some functions in R that can be used to examine the data? |
| Duration: 01h 20m | 3. Formatting the Data |
What do the pivot_longer() and full_join()
functions do?
|
| Duration: 01h 40m | 4. Introduction to ggplot2 | What are the three components needed for creating a plot in ggplot2? |
| Duration: 02h 10m | 5. Extra ggplot2 Customisation | How can you add a title and change the axis labels in a ggplot? |
| Duration: 02h 30m | 6. Wrapping Up | How can I save plots to a file? |
| Duration: 02h 50m | Finish |
The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.
Please follow the steps below and install the required software before the scheduled workshop.
RStudio Setup
We use RStudio for coding in R.
Click here and follow the instructions to install RStudio Desktop in your system.
R packages
Most workshops using R will require the installation of specific packages. Make sure to check in advance with the workshop organisers what packages need to be installed.
You can install packages from CRAN using:
R
install.packages("package_name")
If your package is in a different R repository, such as Bioconductor or GitHub, you may need the BiocManager or devtools packages to install them. To install BiocManager:
R
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install()
For devtools, you can simply do:
R
install.packages("devtools")
You can then install packages directly from GitHub with:
R
devtools::install_github("username/reponame")