From the course: R for Data Science: Lunch Break Lessons

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

par: font, size, color

par: font, size, color

- [Instructor] Par is short for graphical parameters. And you can use par to set or get values that control the look of graphics and plots. Now par has a lot of things going on. So I'm going to break it up into three sessions. And even then, I won't cover everything. I have included a file in the handouts that exercises most of the par options. And you can use it as a reference. You'll find it as both an R markdown file that demonstrates the code, and as a Microsoft word document that you can use for reference. So let's get started. The first thing I need to do is save the par values. And I'm doing that here in line three. I'm using par with no dot read only equals true. And what this is going to do is save all of the variable values of par into old par values. I'm not saving any of the read only values. So I can go ahead and run that. Now let's create a plot. And this plot is just a generic very, very simple plot…

Contents