This repository contains all the materials needed for the Introduction to Data Visualisation in R workshop, held at Inverness College as part of the Fringe events for Datafest 2020.
You can run the code by clicking on the button below to launch a binder, created via the holepunch package.
Or you can install everything on your own machine.
First you need to have R installed. It is also suggested that you install RStudio as it generally makes things a little easier. Once these are installed you need to add some additional packages. Packages give R some additional functionality. To run all the shiny apps included herein you'll need the following packages installed.
You can install all of these packages at once using the following line of code.
install.packages(c("shiny", "plotly", "dplyr", "readr"), dependencies = TRUE)
If you want to modify the presentation you will also need the xaringan package installed.
install.packages("xaringan", dependencies = TRUE)
The easiest way to work with these materials is to open the RStudio project. This will allow you to easily see the folders in RStudio. Each folder contains a file app.R
which contains the code for a shiny application. You can then open these in RStudio and then you can click on the Run App
button to run the application. The image below should give you some idea of the process.
The majority of the data used in these applications are built into the additional packages. The exception is historic Met Office data, from the Cambridge, Eastbourne, Nairn and Tiree weather stations. The data is available for download from the Met Office - https://www.metoffice.gov.uk/research/climate/maps-and-data/historic-station-data.
The production of all the materials for this workshop was funded through ESF.