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?
Related Posts with Titles for graphs in loops
Dummy omitted because of collinearity - FEHi everyone, I am running a FE regression with dependent variable = lnyield and the independent var…
REPLACING #VALUE! and #NUM! to "." from excel databaseHello! I need help to find a code that allow me to replace #VALUE! and #NUM! to "." from an excel im…
Subtracting two variables with missing valuesHello all, I have split the data of user reviews in two halfs (chronological order). For each user,…
Confidence Interval with Graph DotDear all, I am trying to add confidence intervals to a graph dot showing the mean value of anti-imm…
question about tuples @Nick Cox@Nick Cox Dear Nick,now I have 5 variables ,x1 x2 x3 x4 x5. I want each tuple contains only one of x…
Subscribe to:
Post Comments (Atom)
0 Response to Titles for graphs in loops
Post a Comment