Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • dor graph

    Hello everyone!

    I am struggling with formatting my dot graph(s)....
    On the first photo I uploaded you can see how it is supposed to look, on the second photo you can see what I managed to do so far.
    I used Stata 12.1. This is my code:

    graph dot (asis) STD_unadj STD_eb, over(groups) marker(1, msymbol(O)) marker (2, msymbol(X)) scale(0.35) legend(cols(1) rows(2) position(12)) ytitle(standardized difference in mean) yscale(titlegap(*10)) aspectratio(4)
    graph save std.gph, replace
    graph dot (asis) pvalue_unadj pvalue_eb, over(groups, label(nolabels)) marker(1, msymbol(O)) marker (2, msymbol(X)) scale(0.35) legend(cols(1) rows(2) position(12)) ytitle(p-value: difference of means test) yscale(titlegap(*10)) aspectratio(4)
    graph save pvale.gph, replace
    graph combine std.gph pvale.gph
    graph save eb_final.gph, replace


    Now I am stuck:
    First, I would like the two graphs to be as close to each other as they are in the first photo.
    Second, the size of the text should be bigger without the lines overlapping (this is what happens, if I try to adjust the scale, i.e. using 0.6 instead of 0.35). I tried "(...) graph dot (asis) STD_unadj STD_eb, over(groups, gap(*2)) marker(1, msymbol(O)) (...)" but for any number I inserted (*2/*5/*10) nothing changed...

    I would very much appreciate your help and advice!
    Victoria
Working...
X