Hello!
I'm using a loop to output graphs and save them directly to Word. Is there a possibility to insert a different label before each graph?
foreach var in vbk betr_insg betr_baywiss tandem betr_par betrauf_uni betrauf_haw koopaus ///
{
tab `var' hochschulart, colum
graph bar (percent)`var', over(hochschulart) blabel(total, format(%12.2fc ))
graph export Hochschulart`var'.png, replace
putdocx paragraph, halign(center)
putdocx image Hochschulart`var'.png
}
Thx !!!
I am a real beginner and am not allowed to share the dataset and don't know how to use a fake dataset ...
Sorry for that.
Related Posts with putdocx + loop --> label?
combining multiple excel file with multiples excel sheetsHi, I'm now trying to combine multiples excel sheets from multiple excel files. I want to get one ex…
tableHi, I want to make a table. I have a dataset containing sum of sales on different locations in diffe…
Using local in CDHi, i want to use a local in a CD, is it possible? I would like something like this : Code: local …
Organising 4 Groups of Count Data into 2 CategoriesI was hoping to have a bit of assistance in the formatting of a bar chart. I’ve created the followi…
Loop function to order multiple variables togetherHello I urgently need help with the loop function in STATA to order multiple variables together. I…
Subscribe to:
Post Comments (Atom)
0 Response to putdocx + loop --> label?
Post a Comment