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
Help with -foreach loop commandHi, I am trying to simplify my code to generate and replace multiple variables. Below is the code t…
Regressing panel data returns "repeated time values within panel"Hi somebody there. I am new to start and I am trying to regress panel data from a huge cohort that f…
rerun the code to count TFP and error continues to emerge as saying missing values in cluster variable __000002 not allowedHi, I am using almost the same code to count TFP, but it continues to saying" missing values in clus…
Correlation and regressionHello, I have an assignment due next wednesday and I was wondering if I could please get some help …
Changing a variable by a factor of 1000Hi, I have a float variable of birth weight in grams but there are approximately 250 entries which h…
Subscribe to:
Post Comments (Atom)
0 Response to Titles for graphs in loops
Post a Comment