This is an introduction to creating figures in R using the package
ggplot2. We will show how to read data into R using a few sources, including the data repository Dataverse. We then will introduce
ggplot2, which we think provides an elegant and lego-like way to provide an introduction to dataviz. It implements a
grammar of graphics that lets users layer graphical elements in a modular and adaptable way.
- Follow the instructions on the setup page to get the tools you need for the workshop.
- To familiarize yourself with some of the basic syntax and structure of R, take the free online R course from datacamp.com: https://www.datacamp.com/. You can also learn R from within R with a tutorial called Swirl. Follow the instructions here: http://swirlstats.com/students.html.
- Review Introduction to R and RStudio and Project Management With RStudio. These two episodes will give you some introduction to RStudio and project management in RStudio. You can skip over redundant parts in Introduction to R and RStudio that introduce R programming covered above.
Email email@example.com if you run into snags.
- Download the files needed for the course: https://ucla-data-archive.github.io/am7-fsci-data-viz/am7_episodes_rmd.zip
|Setup||Download files required for the lesson|
|00:00||1. Introduction to R and RStudio||
How to find your way around RStudio?
How to interact with R?
How to manage your environment?
How to install packages?
|00:55||2. Project Management With RStudio||How can I manage my projects in R?|
|01:25||3. Reading Data in R|
|01:45||4. Creating Publication-Quality Graphics-Full SWC Episode||How can I create publication-quality graphics in R?|
|03:05||5. Plotting with GGPLOT2||How can I create publication-quality graphics in R?|
|04:25||6. Plotting with GGPLOT2 - Extra examples||Extra ggplot examples|
The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.