Hi,
I am trying to plot a bar chart. The objective is to add the group mean (group_mean in the data example) as a separate bar to the bar chart. I am not able to do it. Any help in this regard would be greatly appreciated.
Data example is given below.
This is the syntax I am using:
Thank you in advance.
I am trying to plot a bar chart. The objective is to add the group mean (group_mean in the data example) as a separate bar to the bar chart. I am not able to do it. Any help in this regard would be greatly appreciated.
Data example is given below.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str2 stcode double revenue_receipts2016 float group_mean "AP" 98984.48640000001 104597.78 "AS" 49219.80470000001 104597.78 "BR" 105584.9852855 104597.78 "CT" 53685.2495 104597.78 "GJ" 109841.8115 104597.78 "HR" 52496.81762860001 104597.78 "JH" 47053.93024569999 104597.78 "KA" 133213.7889 104597.78 "KL" 75611.72177560002 104597.78 "MH" 204693.1427 104597.78 "MP" 123306.7901 104597.78 "OD" 74299.3894 104597.78 "PB" 47985.418 104597.78 "RJ" 109025.9969 104597.78 "TN" 140231.1346 104597.78 "TS" 82817.95989999999 104597.78 "UP" 256875.1511 104597.78 "WB" 117832.4503021 104597.78 end
This is the syntax I am using:
Code:
graph bar (asis) revenue_receipts2016 , over(stcode, sort(1)) blabel(bar, orientation(vertical)) title()
Comment