Hi everyone,
I have a simple query. I have my dataset in the following form.
Number sex Income
200,1, 500
300,1, 345
400,1, 500
.....
200,2,400
300,2,460
.......
I want to draw bar chart of Number over Income for each sex.
I used the following code
graph bar (mean) Number if sex==1, over (Income)
The bar chart I got is great. Now I also want the Y-axis (Number) and the respective bars to be in percentages rather than absolute numbers. I am not able to write a simple code to execute this.
Any help will be appreciated.
Thanks a ton
Best Regards,
Pushkar
I have a simple query. I have my dataset in the following form.
Number sex Income
200,1, 500
300,1, 345
400,1, 500
.....
200,2,400
300,2,460
.......
I want to draw bar chart of Number over Income for each sex.
I used the following code
graph bar (mean) Number if sex==1, over (Income)
The bar chart I got is great. Now I also want the Y-axis (Number) and the respective bars to be in percentages rather than absolute numbers. I am not able to write a simple code to execute this.
Any help will be appreciated.
Thanks a ton
Best Regards,
Pushkar
Comment