SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 41461: Put multiple PROC SGPLOT outputs on the same PDF page using PROC GREPLAY

DetailsCodeResultsAboutRate It

The sample code on the Full Code tab demonstrates how to use PROC GREPLAY to put four PROC SGPLOT outputs on the same PDF page. Since the Statistical Graphics (SG) procedures such as SGPLOT, SGPANEL, SGSCATTER, and SGRENDER, as well as graphics produced by the ODS GRAPHICS ON statement, do not write any GRSEG entries to a SAS/GRAPH® catalog, using a procedure such as SGPLOT with PROC GREPLAY involves the following three-step process:

Step 1: Use the SG procedures or ODS Graphics to write multiple PNG files to disk.

Step 2: Use PROC GSLIDE with the IBACK= and IMAGESTYLE= graphics options to read the PNG files created in step 1 back into SAS®.

Step 3: Use PROC GREPLAY to "replay" the graphs read in to SAS during step 2.




These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.