5.0 / 5
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.
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.
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.
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)., I work as a Data Analyst/Financial Analyst for a Metals Co. located in Seattle, WA. I have been in my current position for 5 years. I work in SQL, R, R Shiny, QGIS. Because I have traveled the roads you are on I believe I will be an asset and will add value to your programming repertoire. We will walk through multiple examples and get to know each other through the process. Don't take my word for it though. Come on in and take a Project or two. Regards, Chris Shockley