Data Analysis with R: More ggplot2

In this course we will expand on what we learned in the first tutorial. We will discuss and work through examples where we will tweak the theme, which is super important, like centering and sizing, font, etc. We will discuss in depth how to change legend titles and colors. And more. When you’re done with this course with the ggplot2 cheat sheet you can tackle your plots quickly and they will look professional. Now let’s get to it.

Available On Coursera
Data Analysis with R: More ggplot2

Duration (mins)


5.0 / 5


Task List

We will cover the following tasks in 26 minutes:


I think you’re realizing the power of ggplot2 is how we’re able to manipulate every aspect of the plot. Remember too that once you learn ggplot you can become a plot Piccasso. But before we go crazy with the functions we need to go over some housekeeping stuff. We’re going to load the packages we are going to use and we are going to talk about the Rhyme Interface. After that I’ll give you a quick bio on myself.


We will quickly review in this chapter what we learned in the first tutorial. I’m going to move fast. But. You can pause me. Also you don’t want to miss this chapter because the plot we build will be used for the remainder of the course.

Tweaking the Theme (Plot Titles, Axis, etc.)

We’ve all seen plots that have an title that isn’t centered or the text size is too small or some other variant. Let’s nip this issue in the bud by learning how to center our titles, change our text sizes and format our Axis.

Changing Legend Titles

Legends can be a pain in ggplot. This chapter will save you a couple of hours of searching on Stack Overflow for the answers. I will show you how to change the colors and titles in the Legend. Again. Don’t miss this one. It will save you – I know – personally.

Changing the Legend Labels and Point Colors

There are luxury items. Diamonds, Porsche’s, Mansions, and how to change colors of your legend in ggplot. In this chapter I will show you how this is done. I didn’t even think of changing the colors in the legend because I didn’t think it could be done. For two years I didn’t change the colors. And then I figured it out. I’ll show you how.

Moving Legends

Right corner? Left corner? Bottom? Top? No I’m not talking about where to move your couch. I’m talking about where to move the legend within your plot. In this chapter you will learn how this is done.

Final thoughts

Wow. So that’s over. And now. Yep. You’re a ggplot artist. You were exposed to many function calls in ggplot. And because of that your charts whether in school or at work will benefit. As will your readers. Congrats. Good work.

Watch Preview

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

Rhyme Authors

About the Host

Rhyme Authors

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 (Rhyme Authors) 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 (Rhyme Authors) 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 strives to ensure that visual instructions are helpful for reading impairments. The Rhyme interface has features like resolution and zoom that will be helpful for visual impairments. And, we are currently developing a close-caption functionality to help with hearing impairments. Most of the accessibility options of the cloud desktop's operating system or the specific application can also be used in Rhyme. If you have questions related to accessibility, please email us at
We started with windows and linux cloud desktops because they have the most flexibility in teaching any software (desktop or web). However, web applications like Salesforce can run directly through a virtual browser. And, others like Jupyter and RStudio can run on containers and be accessed by virtual browsers. We are currently working on such features where such web applications won't need to run through cloud desktops. But, the rest of the Rhyme learning, authoring, and monitoring interfaces will remain the same.
Please email us at and we'll respond to you within one business day.

No sessions available