Hi there,
I want to put the number of observations in the title of a bar graph that displays the percentage distribution of the observation over a few categories, but I can't find a way to do it. I'm using this command for the graph:
graph bar (percent) var1, over(var2)ytitle(% of `: variable label var1') blabel(bar)
I tried using title(var1 Rate `: var1[r(sum)]'),but apparently it doesn't work.
Thank you,
I want to put the number of observations in the title of a bar graph that displays the percentage distribution of the observation over a few categories, but I can't find a way to do it. I'm using this command for the graph:
graph bar (percent) var1, over(var2)ytitle(% of `: variable label var1') blabel(bar)
I tried using title(var1 Rate `: var1[r(sum)]'),but apparently it doesn't work.
Thank you,
Comment