Hello everyone,
I'm trying to save some graphs, and the code is working for saving them, but I can't seem to title them anything useful.
Here is the code:
levelsof Fullid, local(cpm)
foreach i in `cpm'{
twoway connected mhos cpn if Fullid==`i', title("`i'")
qui: graph export "$Raw Data`i'.pdf", replace as(pdf)
}
My problem is that I'd like to use the values of Fullid as the title, but because I'm using levelsof for the loop I just end up with each graph being titled 1, 2, 3 (etc. for each level of Fullid). Does anyone have a work around for this?
0 Response to Titles for graphs in loops
Post a Comment