Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Intro to data visualisation using 'ggplot2'

Liying Wang, Gayoung Park, Delaney Glass, Shane Scaggs & Ben Marwick

Details

Date and time: 01/11/2021 9am-11am Pacific Standard Time

You can register our workshop at this link: https://washington.zoom.us/meeting/register/tJMqd-Gurj4qEtxIVgp7sbfjrLd-wtF-9EjX

Here are our slides

Backup is https://rstudio.cloud/ if you have a problem with your computer.

Outline

1. Finding your way around R and RStudio (DG)

  • Check everyone could download and open R & RStudio
  • Check version numbers for R (we want 4.0.2)
  • A brief tour of the main panes (Console, Files, Environ, text editor, pkgs and help)
  • Have to make sure everyone can make the console work before we move on, e.g. console as a calculator

2. Starting a new RStudio project & installing R pkgs (DG)

  • Create a new RStudio project
  • Run install.packages("tidyverse") in the console

3. Inspecting data (LW)

  • Load and take a look at the data
  • Intro to the dataframe
  • Get basic summary of data

4. Data manipulation (LW)

  • Select specific columns to simply data
  • Select specific data points
  • Create a new variable

5. Data visualization with ggplot2- Histogram and Scatter plots (LW)

  • Histogram and fill colors
  • Scatter plots for multiple variables

6. Data visualization with ggplot2- Boxplots and Faceting (GP)

  • Boxplots
  • Add annoatation and reverse x & y axis
  • Facet plot and change scales
  • Explore themes and add title & labels

7. Showcase (DG, LW, BM, GP & SS)

  • Other plots we can make using ggplot2

Setup instructions

Before you join the workshop, please make sure you have the most recent versions of R and RStudio installed on your computer. Here's how to get those programs:

R & RStudio

R is a programming language that is especially powerful for data exploration, visualization, and statistical analysis. To interact with R, we use RStudio.

Windows

Video Tutorial

Install R by downloading and running this .exe file from CRAN. Also, please install the RStudio IDE. Note that if you have separate user and admin accounts, you should run the installers as administrator (right-click on .exe file and select "Run as administrator" instead of double-clicking). Otherwise problems may occur later, for example when installing R packages.

macOS

Video Tutorial

Install R by downloading and running this .pkg file from CRAN. Also, please install the RStudio IDE.

Linux

You can download the binary files for your distribution from CRAN. Or you can use your package manager (e.g. for Debian/Ubuntu run sudo apt-get install r-base and for Fedora run sudo dnf install R). Also, please install the RStudio IDE.

Further reading:

Content on this site is licensed under a Creative Commons Attribution 4.0 International license.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages