Dear All,
I'm trying to use loop to generate graphs of a list of variables, and export the graphs to a specific folder, and save the graphs with graph names being the looping variables. The following code does not work properly.
Any help will be appreciated!
Thank you very much!
Best,
Craig
I'm trying to use loop to generate graphs of a list of variables, and export the graphs to a specific folder, and save the graphs with graph names being the looping variables. The following code does not work properly.
Code:
foreach var of varlist a-z{ capture noisily /// catplot `var', title(`var') graph export "\Graphs\`var'.png" }
Thank you very much!
Best,
Craig
Comment