You can use the BINSTART= and BINWIDTH= options to control the bin anchor and width. Be sure to use SCALE=COUNT. Use XAXIS VALUES=(60 to 220 by 5) to get the tick marks to agree. Unfortunately, labeling the bar heights is not a built-in option for the HISTOGRAM statement. I know of three options that you can choose from: 1) Use YAXIS GRID to add horizontal grid lines to the graph. That will make it easy to read the heights of the bars. This is what I would do, since grid lines are less distracting than bar labels. 2) Give up on PROC SGPLOT and use the Graph Template Language (GTL) instead. This enables you to overlay the data labels for the bars on top of the histogram. 3) Create the historgram by using PROC UNIVARIATE instead. See the example at Construct normal data from summary statistics - The DO Loop For your example, the UNIVARIATE code (on my data) would be proc univariate data=WalkTimes; freq Freq; var t; histogram t /endpoints=(12 to 24) vscale=count barlabel=count; run;
... View more