Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
A series plot is a graphical display of two quantitative variables where the points are connected by a combination of horizontal and vertical lines. The points are optionally displayed on the lines. The function is like a set of stairs which has horizontal landings and vertical risers but no diagonal lines. You can choose to have the vertical segment rise from a point, to a point, or in the middle between points. The following steps produce a step plot:
proc means data=sashelp.class noprint nway;
var weight;
class height;
output out=class mean=weight lclm=lower uclm=upper;
label weight = 'Mean Weight';
run;
proc template;
define statgraph step;
begingraph;
entrytitle 'Average Weight by Height';
layout overlay;
stepplot x=height y=weight / display=(markers)
markerattrs=(size=3px);
endlayout;
endgraph;
end;
run;
proc sgrender data=class template=step;
run;