The first PLOT statement produces a scatter plot with the yvar variable plotted on the vertical axis and xvar on the horizontal axis.PROC GPLOT DATA=dataset; PLOT yvar * xvar / [Options] ; PLOT yvar * xvar = zvar / [Options] RUN; QUIT;
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
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.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;
Selected Options for HBAR and VBAR statements
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;