Hi all,
I have data similar to the table below.
Say A-D are schools; Var 1- 4 are facilities that the school might or might not have (coded as 1 and 0 respectively). I want to make a plot of this table with each school on the y-axis and each facility on the x-axis with 1 plotted as a bar with some colour and 0 plotted as a bar with no colour (or a different colour), but on the same line. essentially not four different bars for each school, but one single bar that changes colour. For example, if 1 is green and 0 is red, school A should be plotted as GRRG. Is there any way to do this in STATA? Thanks in advance.
I have data similar to the table below.
A | B | C | D | |
Var1 | 1 | 0 | 0 | 1 |
Var2 | 0 | 0 | 1 | 1 |
Var3 | 1 | 0 | 1 | 0 |
Var4 | 0 | 1 | 1 | 0 |
Comment