Chapter 7 Bar chart
Bar charts are normally used to inspect the distribution of categorical (dichotomous, nominal or ordinal) variables.
7.1.1 Example dataset
From this dataset, this example uses variable
7.2 Input: jamovi
7.3 Input: R
For more advanced stuff, visit the Rosetta Stats Pro: SPSS to R book.
7.4 Input: SPSS GUI
First activate the
pp15 dataset by clicking on it (see 2.3.1).
Open the “Graphs” menu and select the “Chart Builder” option as shown in Figure ??.
In the “Chart Builder” dialog, select “Bar” from “Gallery” and drag “Simple Bar” to the “Chart Preview” as shown in Figure 7.3.
Under the “Variables” menu, select “currentEducation” and drag it onto the “X-Axis?” option in “Chart Preview” as shown in Figure 7.4. Note that there are options to modify the aesthetics of the graph on the right side of the screen under “Element Properties”, “Chart Appearance”, and “Options”.
7.5 Input: SPSS Syntax
Use the following command (this requires the
dat dataset to be the active dataset, see 2.3.1):
THIS COMMAND HAS YET TO BE ADDED