![spss code for class spss code for class](https://cdn.codm.gg/assets/cosmetics/cosmetics_6844.jpg)
The y-axis (on the left) represents a frequency count, and the x-axis (across the bottom), the value of the variable (in this case Height). The SPSS output viewer will pop up with the histogram that you’ve created. You’re now ready to create the histogram. We suggest you also tick the Display normal curve option, though this is optional.
![spss code for class spss code for class](https://www.spss-tutorials.com/img/spss-compute-age-variable-view.png)
You can do this by selecting the variable, and then clicking the arrow (as above). You need to select the variable on the left hand side that you want to plot as a histogram, in this case Height, and then shift it into the Variable box on the right. The simplest and quickest way to generate a histogram in SPSS is to choose Graphs -> Legacy Dialogs -> Histogram, as below. For example, are there more heights at the top end than at the bottom end – in other words, is the distribution skewed? A histogram will go some way to answering this question. We want to know how the frequency of heights is distributed.
![spss code for class spss code for class](https://i.ytimg.com/vi/jYn5Jv7Gh4s/maxresdefault.jpg)
The variable we’re interested in out of the three you can see here is height.