I am generating several charts but would like to delete after graph combine. I have tried the following:
HTML Code:
foreach v in 0 1 8 { foreach x in CCL17 CXCL10 CXCL11 CCL18 { profileplot RCCL220_`x'0 RCCL221_`x'1 RCCL228_`x'8 if nmissccl22==0 , saving(CCL22`x'.gph) } } fs *.gph graph combine `r(files)' local list : dir . files "*.gph" foreach f of local list { erase "`f'" }
Local list does not list my graphs and the loop does not result in erased charts. I would be very grateful for any help on this.
Many thanks!
0 Response to How to erase multiple graphs from file?
Post a Comment