SASŪ Graphic Procedures

PROC GPLOT

Syntax
PROC GPLOT DATA=dataset;
  PLOT yvar * xvar /  [Options] ;
  PLOT yvar * xvar = zvar /  [Options] 
RUN; QUIT;
The first PLOT statement produces a scatter plot with the yvar variable plotted on the vertical axis and xvar on the horizontal axis.

The second PLOT statement plots yvar and xvar as in the first statement, but a different symbol is used for each unique value of variable zvar.

Selected Options




PROC GCHART

Syntax
PROC GCHART DATA=dataset;
  HBAR | HBAR3D | VBAR | VBAR3D chart-variable(s) [/ option(s)];  
  BLOCK chart-variable(s) [/ option(s)];  
  PIE | PIE3D | DONUT chart-variable(s) [/ option(s)];  
  STAR chart-variable(s) [/ option(s)];  
RUN; QUIT;
The HBAR (HBAR3D) and VBAR (VBAR3D) statements create, respectively, horizontal and vertical (3D) bar charts (histograms). The other statements create charts the same as the statement keyword names.

Selected Options for HBAR and VBAR statements




PROC GREPLAY

PROC GREPLAY can be run in two modes: Full Screen (FS) or not (NOFS). Full screen is the default mode. When FS mode is used, a GREPLAY window comes up and allows you to choose which graphics to replay. You can save, print, view, edit and/or create slides using templates.

When GREPLAY is run in NOFS mode, many of these same functions can be done, but by using programming code instead of a GREPLAY window. Syntax

PROC GREPLAY [NOFS] [GOUT=output_catalog] [IGOUT=input_catalog]
            [TC=template-catalog] [TEMPLATE=template-name]
RUN; QUIT;



PROC GREPLAY NOFS;
  GOUT  output-catalog;    
  IGOUT input-catalog;
  TC template-catalog;
  TEMPLATE template-name;
  TREPLAY graphic_list;
RUN; QUIT;