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 - SAS Tutorial
From the course: SAS Programming for R Users, Part 2
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
The DO loop6m 18s
-
(Locked)
Random number generation3m 40s
-
(Locked)
Demo: The DO loop and random number generation5m 27s
-
(Locked)
Plotting with the SGPLOT procedure6m 55s
-
(Locked)
Demo: Creating standard R plots7m 12s
-
(Locked)
Enhancing the plot1m 47s
-
(Locked)
Demo: Enhancing the plot5m 43s
-
(Locked)
Multi-cell plotting procedures and statements6m 5s
-
(Locked)
Demo: Multi-cell plotting4m 33s
-
-