Hi,
I have exposure data of PM2.5>100 with 594315 observations but want to count only
PM2.5==5 and show the percentage of the count. I want to show the percentage on the bars or on the y-axis but at the moment, the graph is only showing the count number.
My code looks like this:
graph bar (count) pm if pm==5 & type==0, blabel(bar,format(%9.1f)) ///
over(id, label(angle(90) labsize(small))) scale(*.4) ///
legend(row(2)) over(type) bar(1, fcolor(blue)) ytitle("Number of observations") ///
title(PM LOD Count)
Just started working with stata not too long ago and not been able to find a count count command with percentage. Please kindly help. Thank you in advance
I have exposure data of PM2.5>100 with 594315 observations but want to count only
PM2.5==5 and show the percentage of the count. I want to show the percentage on the bars or on the y-axis but at the moment, the graph is only showing the count number.
My code looks like this:
graph bar (count) pm if pm==5 & type==0, blabel(bar,format(%9.1f)) ///
over(id, label(angle(90) labsize(small))) scale(*.4) ///
legend(row(2)) over(type) bar(1, fcolor(blue)) ytitle("Number of observations") ///
title(PM LOD Count)
Just started working with stata not too long ago and not been able to find a count count command with percentage. Please kindly help. Thank you in advance
Comment