EXAMPLE 25  Plotting Multiple Graphs on the Same Page

Purpose: Use PROC GREPLAY to display several graphs on a page.

It is often useful to place multiple graphs on the same page, in varying sizes and positions, in order to look at the same data in different ways. There are several techniques you can use to accomplish this in SAS/GRAPH. I strongly recommend PROC GREPLAY because it provides the maximum flexibility.

To use PROC GREPLAY, you first run your code to create all the individual graphs, using the NAME= option to save them into named GRSEGs (so you can refer to them by those names later). Next create a custom PROC GREPLAY template, specifying the X and Y coordinates of the four corners of the desired areas to display each graph. And ...

Get SAS/GRAPH: Beyond the Basics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.