Announcement

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

  • Problem with a graph twoway connected

    Dear All,

    I wanna have a graph showing the avarage yearly evolution of my variable mean_x. I want to highlight the crisis on the graph in 2008 2009 . I used the code:
    Code:
    graph twoway connected mean_x year, sort ///
    xline (2008 2009, lstyle(dot) ///
    ytitle("average x") xtitle("year") ///
    xsca(titlegap(2)) ysca(titlegap(4)) ///
    I'm confused because Stata neither produce anything nor shouts at me I have an error.

    Please help me. I'm using Stata 17/SE. I used earlier Stata 15/IC and used such a code and it produced graphs. I'm really confused

  • #2
    remove the last ///

    Comment


    • #3
      Thank you so much! I got my graph

      Comment

      Working...
      X