I am trying to save my graphs from a loop but every time the command runs, it just saves over and replaces the saved graph before it, leaving me with only one graph (of the last variable).
below is my code.
thanks!
below is my code.
Code:
foreach var in x1 x2 x3 x4 x5 x6 x7 { hist `var', title("`var'") graph export "file location\`var'.png", replace }
Comment