Hi,
I am trying to generate and save a series of dotplots using a loop. The relevant lines are:
local intint AgeAtHAART YearsOfVL_FU_afterSuccess400 YearsSpentUndetectable PeakVLBefARVs BaselineCD4 MaxCD4At2y PercentCD4Change AbsIncrease2y RDWatHAART WBCatHAART HgbAtHAART MCVatHAART PLTatHAART SCrAtHAART eGFRHAART SCrAtImmuneFail eGFRImmuneFail AZTd4T_PeriodsDuringObs AZTd4Ttime FolInh_PeriodsDuringObs FolateInhTime ACEI_PeriodsDuringObs ACEItime ARB_PeriodsDuringObs ARBtime RTVperiodsDuringObs RTVtime
foreach x of var `intint' {
dotplot `x' if RDWatHAART >0, over(CD4Above350At2y) median bar center msymbol(o) saving(`x'.jpg, replace)
}
All the expected graphs are generated and saved, with .jpg extensions, but when I try to use them in other applications (e.g., insert them into a PowerPoint slide), they are unreadable. If I manually change the extension to .gph, sure enough, Stata opens them without complaint. Adding the asif option also doesn't change the behavior.
Any ideas?
I am trying to generate and save a series of dotplots using a loop. The relevant lines are:
local intint AgeAtHAART YearsOfVL_FU_afterSuccess400 YearsSpentUndetectable PeakVLBefARVs BaselineCD4 MaxCD4At2y PercentCD4Change AbsIncrease2y RDWatHAART WBCatHAART HgbAtHAART MCVatHAART PLTatHAART SCrAtHAART eGFRHAART SCrAtImmuneFail eGFRImmuneFail AZTd4T_PeriodsDuringObs AZTd4Ttime FolInh_PeriodsDuringObs FolateInhTime ACEI_PeriodsDuringObs ACEItime ARB_PeriodsDuringObs ARBtime RTVperiodsDuringObs RTVtime
foreach x of var `intint' {
dotplot `x' if RDWatHAART >0, over(CD4Above350At2y) median bar center msymbol(o) saving(`x'.jpg, replace)
}
All the expected graphs are generated and saved, with .jpg extensions, but when I try to use them in other applications (e.g., insert them into a PowerPoint slide), they are unreadable. If I manually change the extension to .gph, sure enough, Stata opens them without complaint. Adding the asif option also doesn't change the behavior.
Any ideas?
Comment