Data Analysis with R: Introduction to ggplot2

In this course we’re going to cover the ggplot package in R. This package, created by Hadley Wickham, is used by hundreds of thousands of R users to build millions of graphs.
My goal for you is that you walk away with a solid foundation for building graphs and displaying your data. It’s going to be fun. It’s interactive. I’ll even share a bear story with you. See you soon.

Data Analysis with R: Introduction to ggplot2

Duration (mins)


5.0 / 5


Task List

We will cover the following tasks in 41 minutes:


This is where we lay the ground work for the rest of the lesson. We will discuss what we will learn, I will show you quickly how to use the technology, and then a short bio about me your instructor.

Getting to work!

You don’t want to miss this section because we’re going to go over the Grammar of Graphics. We’re going to build our first plot, add some points and then finish off with a couple trend-lines.

Slicing and Dicing the Graphs

Of course you can filter the data.frame to get the reduction in data that you need for the graphs. But… There’s an easier way. I’ll show you in this section. Come on in.

Two Ways to do Titles and Axis labels

Titles and Axis labels. I’ll show you two ways. You choose. Clean titles are so important because we spend all this time with our data and we want our work to have the best effect. Take this section and you’ll see some ways to make your graphs stand out.

Point Colors and Sizes (Important!)

Maybe your the artist type. Or maybe not. But whatever the case we’re going to splash some color on our graphs. And even better, we are going to change our graph from two dimensions to three. Come in and see.

Axis Texts and Ticks

It’s a pain. Formatting the Tick marks the way you want. It’s one of the last things you’ll do. Don’t miss this section. I make your life much easier.

Scaling the Axis Tick Marks

This is part two. We will talk about the scales package. This is how you add dollar signs and percents to the axis.

Custom Themes

There are custom themes built into ggplot. We will go over a couple. It’s a must see section. We end here as well.

Final Thoughts

Congratulations! I will share a couple final thoughts in this chapter before sending you off to the next tutorial! You did good.

Watch Preview

Preview the instructions that you will follow along in a hands-on session in your browser.

Chris Shockley

About the Host (Chris Shockley)

I am an R enthusiast, hiker, and amateur astronomer. My favorite hike is located in Mt. Rainier National Park, my favorite Deep Sky Object is Alberio, and my favorite R package is dplyr (since I use it everyday). I have a dog named Coog (Lllasa Apso), and I love talking about Coog (as you'll find out soon). I work as a Data Analyst/Financial Analyst for a Metals Co. located in Seattle, WA. I have been in my current position for 4 years. I work primarily in R for Analytics and R Shiny for Deployment. I have built numerous apps over the past few years. My hope is that I can help you in learning R. Yes, the Rhyme Interface will help you. But. You also must take what you learn and practice, practice, practice. So... Let's get after it. See you soon.

Frequently Asked Questions

In Rhyme, all projects are completely hands-on. You don't just passively watch someone else. You use the software directly while following the host's (Chris Shockley) instructions. Using the software is the only way to achieve mastery. With the "Live Guide" option, you can ask for help and get immediate response.
Nothing! Just join through your web browser. Your host (Chris Shockley) has already installed all required software and configured all data.
You can go to, sign up for free, and follow this visual guide How to use Rhyme to create your own projects. If you have custom needs or company-specific environment, please email us at
Absolutely. We offer Rhyme for workgroups as well larger departments and companies. Universities, academies, and bootcamps can also buy Rhyme for their settings. You can select projects and trainings that are mission critical for you and, as well, author your own that reflect your own needs and tech environments. Please email us at
Rhyme's visual instructions are somewhat helpful for reading impairments. The Rhyme interface has features like resolution and zoom that are slightly helpful for visual impairment. And, we are currently developing a close-caption functionality to help with hearing impairment. Most of the accessibility options of the cloud desktop's operating system or the specific application can also be used in Rhyme. However, we still have a lot of work to do. If you have suggestions for accessibility, please email us at
Please email us at and we'll respond to you within one business day.

No sessions available

More Projects by Chris Shockley