Dear Statalist,
I have 2 queries on using graph bar - i) I am trying to produce a graph that will also show the average estimate of the variable "totrep_inunit" across the overlay variable "nrgindex" categories - but Stata does not allow it i.e. I can not add any suboption (e.g. total) in the "over()" syntax. Please see code below:
#delimit ;
graph hbar (mean) totrep_inunit , nofill over(nrgindex, sort(1) descending label(labcolor(navy) valuelabel labsize(*.3)) axis(lcolor(emerald))) blabel(bar, color(navy) size(tiny) format(%3.0f))
ylabel(`mylaby', ang(h)labsize(tiny) labcolor(navy) tlcolor(navy) tstyle(minor)) yscale(lcolor(emerald))
ytitle("Average time (minutes)", size(vsmall) color(navy)) intensity(*0.7)
title("Average reporting time per form", size(medsmall) color(navy) span)
subtitle("`string' MONTHYLY reporting forms", size(small) color(maroon) span)
note("Source: Time & Motion 2016", size(tiny) span) saving(time1) legend(size(vsmall));
saving(time1, replace)
Any ideas would be most welcomed - ii) I am also getting an error message with the "saving()" option as "file time1.gph could not be opened"....
Thanks very much in advance.
Best,
Amani
I have 2 queries on using graph bar - i) I am trying to produce a graph that will also show the average estimate of the variable "totrep_inunit" across the overlay variable "nrgindex" categories - but Stata does not allow it i.e. I can not add any suboption (e.g. total) in the "over()" syntax. Please see code below:
#delimit ;
graph hbar (mean) totrep_inunit , nofill over(nrgindex, sort(1) descending label(labcolor(navy) valuelabel labsize(*.3)) axis(lcolor(emerald))) blabel(bar, color(navy) size(tiny) format(%3.0f))
ylabel(`mylaby', ang(h)labsize(tiny) labcolor(navy) tlcolor(navy) tstyle(minor)) yscale(lcolor(emerald))
ytitle("Average time (minutes)", size(vsmall) color(navy)) intensity(*0.7)
title("Average reporting time per form", size(medsmall) color(navy) span)
subtitle("`string' MONTHYLY reporting forms", size(small) color(maroon) span)
note("Source: Time & Motion 2016", size(tiny) span) saving(time1) legend(size(vsmall));
saving(time1, replace)
Any ideas would be most welcomed - ii) I am also getting an error message with the "saving()" option as "file time1.gph could not be opened"....
Thanks very much in advance.
Best,
Amani
Comment