New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Supercharge your plotting in R using ggplot2" by Bruno Grande #143

Closed
brunogrande opened this Issue Oct 24, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@brunogrande
Member

brunogrande commented Oct 24, 2016

Description

There are several approaches to plotting available in R: base graphics, lattice and ggplot2, just to name a few. In recent years, ggplot2 has truly taken off to become one of the most popular visualization packages in R. It leverages the grammar of graphics to deliver an intuitive framework to build plots and other graphics.

This workshop will cover the basics of plotting in R using ggplot2 We will learn how to build scatterplots, strip plots, barplots, histograms and other density plots. We will also touch upon various customizations for polishing your plots and preparing them to be published. I will assume that attendees are familiar with R. Please read the installation instructions ahead of the workshop.

Time and Place

Where: Room 7010, Library Research Commons, SFU Burnaby Campus

When: Tuesday, October 25th @ 3:00 pm

Registration

REGISTER HERE

Required Preparation

Assumed Knowledge

Because of time constraints, I expect attendees to be familiar with R. For instance, they should know what data frames are and how to manipulate them.

Software Dependencies

R Language

As I mentioned above, I expect attendees to be familiar with R. Therefore, you should already have R installed on your laptop.

RStudio

I recommend that you install RStudio if you don't have it already. It's an integrated development environment (IDE) specifically made for R. I will be using RStudio in my workshop.

Tidyverse (including ggplot2)

I recommend that you install the suite of tools developed by Hadley Wickam, appropriately called the tidyverse. This includes the following packages, among others:

  • ggplot2, for data visualisation.
  • dplyr, for data manipulation.
  • tidyr, for data tidying.
  • readr, for data import.
  • purrr, for functional programming.
  • tibble, for tibbles, a modern re-imagining of data frames.

To do so, Hadley released a convenience package that installs all of the above packages and more in one command:

install.packages("tidyverse")

If you just want to install ggplot2, run the following command instead:

install.packages("ggplot2")

Data

For this workshop, we will be using Jenny Bryan's gapminder R package, which bundles up a subset of the full gapminder dataset. We will be exploring this data during the workshop. You can install the package as follows:

install.packages("gapminder")

Links

Lessons Notes: https://github.com/jennybc/ggplot2-tutorial

Code: https://gist.github.com/brunogrande/b9f572676e811282d168a23babc12fbc (courtesy of Michelle Jones)

Etherpad: https://etherpad.wikimedia.org/p/2016-10-25-ggplot2

@brunogrande brunogrande added this to the Fall 2016 milestone Oct 24, 2016

@brunogrande brunogrande self-assigned this Oct 24, 2016

@brunogrande brunogrande changed the title from Supercharge your plotting in R using ggplot2 to Supercharge your plotting in R using ggplot2 by Bruno Grande Oct 24, 2016

@brunogrande brunogrande referenced this issue Oct 24, 2016

Closed

Organize Fall 2016 Workshops #126

3 of 15 tasks complete

@brunogrande brunogrande changed the title from Supercharge your plotting in R using ggplot2 by Bruno Grande to "Supercharge your plotting in R using ggplot2" by Bruno Grande Oct 24, 2016

@brunogrande brunogrande removed the workshop label Oct 30, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment