Skip to content

anthro-data-science/data-viz-pt2

Repository files navigation

Visualizing Trends and Distributions with 'ggplot2'

Monica Keith, Shane Scaggs, & Delaney Glass

Details

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

You can register our workshop at this link: https://washington.zoom.us/j/92115452364

Here are our slides

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

Join our low-volume mailing list (must be signed into google) here

Outline

Load Data

  • Create new project "ggplot practice 2"
  • Load starwars data

Demonstration 1: Ordered Bar Graph (Shane)

  • Custom theme
  • Re order

Demonstration 2: Bin 2d (Shane)

  • Two discrete variables
  • Fill colors

Demonstration 3: Contour Plot (Shane)

  • Fill gradients
  • Stat density 2d (call statistic versus geom)

Demonstration 4: Scatter Plot (Delaney)

  • Trend-line
  • Overlay points

Demonstration 5: Violin Plot (Delaney)

  • View key distributions of interest
  • Optional to overlay points (jitter)
  • Typeface & size of axes titles/legend

Demonstration 6: Forest Plot (Monica)

  • Load storms data
  • View many different distributions

Demonstration 7: Alluvial (Monica)

  • Edited legend (position, text, order of variables)
  • Background fill color, border
  • Saving for publication

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

Data visualisation workshop part two Jan 2021

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages