From the course: SAS Programming for R Users, Part 2

Unlock this course with a free trial

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

Enhancing the plot

Enhancing the plot

- [Instructor] Now that we know how to create the basic R plots in SAS using proc sgplot, let's go ahead and touch up the plot. Again, let's add a title. Let's change the pattern of the lines, the symbols of the points, let's add our name in, let's give it reference lines, let's change the legend and so on. To polish the plot, we'll use the following statements and options. And this is not all the statements and options we you can use in sgplot. Definitely check the doc page to see more. But, for example, if you want to add in a title, of course in R we use the main argument in the plot function, we'll use the title statement in SAS. And, for example, if you want to change the X label, we'll use the XAXIS statement in SAS and use the label equal to option. But, again, this is more of a reference for you to look back to. I'll go through these more on the demonstration. Before we go onto the next demonstration, I just wanted to show you how to save the plot so you can put it into maybe…

Contents