Announcement

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

  • Bar graph with multiple variables overlaying

    Hello,

    I am wondering if it is possible to create a figure like this using stata. I have two variables that I am interested in, though one only applies to girls so I would like to show that in the same bar graph, like the red arrows (+ SE) in the picture. I know I could display the two variables as two bars next to each other, but is it possible to have them overlaying like in the example?
    Click image for larger version

Name:	Bildschirmfoto 2022-07-03 um 12.11.01.png
Views:	1
Size:	338.5 KB
ID:	1671924

  • #2
    This kind of plot is often known as a detonator, dynamite or plunger plot; those are good search terms for many sites explaining how awful they are, even urging that they be banned,

    in Stata, as explained in several threads here, you would need some combination of twoway bar and twoway rcap — noting that graph bar is no use here.

    Comment


    • #3
      This kind of plot is often known as a detonator, dynamite or plunger plot; those are good search terms for many sites explaining how awful they are, even urging that they be banned,

      in Stata, as explained in several threads here, you would need some combination of twoway bar and twoway rcap — noting that graph bar is no use here.

      Comment

      Working...
      X