/*************Figure 2***************************/ /* This command tells SAS to write the frequencies to a data set called frequencies */ ods output OneWayFreqs=frequencies; /* Now compute and output the frequencies*/ proc freq data=sasdata.knobs; tables diameter; run; /* Now produce the needle plot */ proc sgplot data=frequencies; needle x=diameter y=frequency; run;