I am hoping to create a clustered bar graph to compare satisfaction with information received from various sources, such that the categories of satisfaction (i.e., not at all, a little, somewhat, very much) are on the x-axis with a separate bar for each source of information (i.e., A, B, C, D). Despite trying multiple different commands, namely 'bar graph, over()' and 'as category', I have not been able to achieve this. Guidance would be very much appreciated!!
In the data below, 0 = Not applicable, 1 = Not at all, 2 = A little, 3 = Somewhat, 4 = A lot
| ID | A | B | C | D |
| 1 | 1 | 1 | 2 | 4 |
| 2 | 1 | 2 | 1 | 4 |
| 3 | 1 | 3 | 1 | 3 |
| 4 | 1 | 0 | 0 | 0 |
| 5 | 1 | 0 | 0 | 0 |
| 6 | 1 | 1 | 1 | 1 |
| 7 | 0 | 0 | 1 | 1 |
| 8 | 1 | 2 | 1 | 2 |
| 9 | 1 | 1 | 1 | 1 |
| 10 | 1 | 1 | 2 | . |
| 11 | 1 | 1 | 1 | 3 |
| 12 | 1 | 1 | 1 | 2 |
| 13 | 1 | 1 | 1 | 1 |
| 14 | 0 | 0 | 2 | 2 |
| 15 | 1 | 1 | 1 | 1 |
| 16 | 1 | 1 | 1 | 4 |
| 17 | 1 | 2 | 1 | 2 |
| 18 | 1 | 1 | 1 | 1 |
| 19 | 3 | 2 | 2 | 3 |
| 20 | 1 | 1 | 1 | 4 |
0 Response to Clustered bar graph with multiple categorical variables
Post a Comment