Hello,
I'm currently working on a project to determine vaccine timeliness in Fiji by wealth index using Kaplan-Meier curves. Unfortunately, the graphs look very cluttered as the plots are packed closely together. Is it possible to blow up a secton of the graph, particularly a section where the plots diverge, in order to obtain a better visual context of how wealth index affects vaccine timeliness in Fiji?
These are the commands I am using in order to obtain the graph I currently have:
stset wmmr2, failure(mmr2)
sts graph, failure by(windex5) legend(position(6) rows(1) order(1 "Poorest" 2 "Poor" 3 "Middle" 4 "Rich" 5 "Richest")) ///
xlabel(0(25)150) ///
xline(72, lcol(navy) lpattern(dash)) ///
xline(74, lcol(navy) lpattern(dash)) ///
title(Coverage of MMR2 by wealth index) ytitle(Vaccination coverage (%)) xtitle(Age (weeks))
wmmr2 is the time to event while mmr2 is the event of interest. windex5 represents wealth index. The vertical dotted lines created by the xline command is only there to mark the "window" of my defined parameters for vaccine timeliness. Attached you will find the graph I can currently create using the commands above. As stated, I would like to improve the resolution of the graph or blow up the section where the plots diverge, sort of like a magnifying glass on that particular section; blowing up the section, of course, means that the other points may be omitted from the graph, which is fine as I will use the original beside it.
Thanks,
Ryan
Related Posts with Snapshot of key sections of graph (blowing up a portion)
-mimrgns- and -marginsplot-The help file for mimrgns states that while "[i]n principle, marginsplot works after mimrgns […], th…
problems with moving average - panel dataHi everyone, I am using Italian administrative longitudinal data for 10 years. Since I would like to…
Confusion about how to keep one row of data for each student with the most number of classes taken in a programI am using Stata 15.1 for Windows. I would like to keep a certain student in the program that he co…
Use past quarter average of data to regress with next quarter data.Hello all, I am a newbie to STATA and struggling with a peculiar problem. Hoping for some insight f…
Way to identify first successful loop iteration?Hi Stata, I have a loop: forv x = 1/100{ cap{ [stata_commands] [if first successful iteration, exe…
Subscribe to:
Post Comments (Atom)
0 Response to Snapshot of key sections of graph (blowing up a portion)
Post a Comment