Hi everyone,
I am new here and would appreciate your help with the following bar chart.
The chart has 3 (year) bars per id (string variable). I am wondering if anyone knows how to add a secondary y-axis with the graph bar command.
Should the graph bar not allow for a secondary y-axis, would the twoway bar command be the solution? The id can be transformed to a numerical value but should eventually be relabelled with the full name on the x axis.
Cheers,
Giovanni
I am new here and would appreciate your help with the following bar chart.
The chart has 3 (year) bars per id (string variable). I am wondering if anyone knows how to add a secondary y-axis with the graph bar command.
Should the graph bar not allow for a secondary y-axis, would the twoway bar command be the solution? The id can be transformed to a numerical value but should eventually be relabelled with the full name on the x axis.
Code:
graph bar (mean) var, over(year) over(id)
Cheers,
Giovanni
Comment