Hello! I would like to make a bar figure with 10 bars. I have a categorical variable with 5 options and baseline and endline data from each respondent. I would like each set of base and end bars to be grouped together for each of the 5 options, so for example, for the response "strongly disagree" one would see red and blue bars next to each other and a legend base = blue, end = green. My original dataset was one row per repondent ID and var_base and var_end values. I reshaped it to long for easier graphing. So now my dataset has var_ with a time variable indicating base and end. I have experimented with catplot and twoway with no success. With catpolot I was able to group 5 bars for baseline and 5 bars for endline but as I mentioned I want them grouped by response category. I am attaching a picutre of the kind of figure I would like to make (that I made in Excel). Thank you!
-
Login or Register
- Log in with
Comment