SGRENDER Procedure

Example 1: Generating a Graph from a Simple GTL Template

Features:

GTL template

Sample library member: SGRENDR
This example creates a simple StatGraph template by using Graph Template Language and then generates a graph from the template by using the SGRENDER procedure.

Output

Simple Surface GTL Output

Program

proc template;
  define statgraph surface;
  begingraph;
	    layout overlay3d;
      surfaceplotparm x=height y=weight z=density;
	    endlayout;
  	endgraph;
  end;
run;
proc sgrender data=sashelp.gridded template=surface;
run;

Program Description

Create the Statgraph Template.
proc template;
  define statgraph surface;
  begingraph;
	    layout overlay3d;
      surfaceplotparm x=height y=weight z=density;
	    endlayout;
  	endgraph;
  end;
run;
Generate the graphics output from the template.
proc sgrender data=sashelp.gridded template=surface;
run;