Skip to content

Course notes and exercises on ggplot2 for the FISH554 class at the University of Washington

Notifications You must be signed in to change notification settings

sfu-stats-beerz/ggplot2-FISH554

 
 

Repository files navigation

An introduction to ggplot2

This repository has notes and exercises to help you teach yourself how to rapidly explore data with the ggplot2 R package.

It was written as a self-study component for the FISH554 class at the University of Washington.

Instructions

  1. Download this whole repository as a ZIP file and extract the ZIP file.

  2. Find the notes document ggplot2-notes.pdf in the folder you just downloaded. You can also download it directly from this link.

  3. Install the knitr R package: install.packages("knitr")

  4. Open the file ggplot2-exercises.Rmd in RStudio. This is an R Markdown document. See the notes below if you're unfamiliar with R Markdown. The data file Morph_for_Sato.csv is in the same folder.

  5. Work your way through that file while you read the PDF notes document. When you want to check your work, or if you get really stuck, jump over to this version that has the answers.

Working with R Markdown

You can read more about R Markdown on the RStudio website here and here.

The basic idea is to add R code within the code chunks:

```{r}
# Add your code here
```

You can then run those code chunks, jump to chunks via the pop up menu in the bottom left of the code window, and "knit" the whole document via the "Knit HTML" button at the top of your code window.

The notes document was also written with knitr, but the LaTeX version.

Contact

If you have any questions on the notes or exercises, or want to provide feedback, feel free to email me at sean "at" seananderson.ca.

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

About

Course notes and exercises on ggplot2 for the FISH554 class at the University of Washington

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 74.9%
  • Makefile 25.1%