Announcement

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

  • Adding line to bar graph

    Hi,

    Is there a way to connect the top of bar graphs in stata like the graph below?

    I am using the code:

    graph bar mean_zero_thresh_ratio_I,
    over(Income,...

    Thank you!
    Attached Files

  • #2
    Use -twoway bar- instead:
    Code:
    sysuse citytemp, clear
    graph bar tempjan , over(division)
    collapse tempjan tempjul, by(division)
    twoway bar tempjan division, barw(.5) xlabel(1(1)9, valuelabel) ylabel(0(10)90)  base(0)  /// 
     || line tempju division , name(gr,replace)

    Comment

    Working...
    X