Then we use the HISTOGRAM statement to create the histogram. First, we use the SGPLOT statement and the DATA=-option to specify the input dataset.
Histogram maker xmin and binwidth code#
With the SAS code below, we create a default histogram in just two steps. You only need to define your input dataset and specify the variable you want to plot.
Histogram maker xmin and binwidth how to#
How to Create a Standard Histogram?Īs discussed above, creating a standard histogram with the SGPLOT procedure is extremely easy.