I am running a proc sgplot in SAS to create a histogram. Y-axis: Number of people, X-Axis: Count of Miles. The problem is the histogram is displaying the data using 30+ bars of very small x-axis intervals. I want only 10 bars to display in the histogram. Is there a simple feature I can add to the code to limit the histogram to display only 10 bars? Code below:
proc sgplot data= miles;
title "Cumulative Miles Driven by Number of Individuals"
histogram CumulativeMiles/scale= count
fillattrs=(color=blue);
xaxis values= (0 to 1000 by 100)
label= "Cumulatve Miles Driven"
yaxis values= (0 to 50000 by 10000)
label= "Number of Individuals";
run;