Announcement

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

  • How to use marker symbols with twoway graph

    Dear Statalists,

    I am plotting two impulse response functions (with their respective confidence bands) for horizon "h" in the same graph, hence I would like to use marker symbols to differentiate among them for B/W versions. However, Stata does not recognize my option for marker symbols in the following code:

    Code:
    twoway (line response1 h, lcolor(navy) lpattern(solid) lwidth(thick)) ///
    (line upband1 h, lcolor(navy) lpattern(longdash) lwidth(thick) msymbol(Dh) msize(large)) ///  
    (line loband1 h, lcolor(navy) lpattern(longdash) lwidth(thick) msymbol(Dh) msize(large))  ///
    (line response2  h, lcolor(cranberry) lpattern(solid) lwidth(thick)) ///
    (rarea upband2 loband2 h, fcolor(cranberry%30) lcolor(cranberry%30) msymbol(Oh) msize(large)) ///
    (line zero h, lcolor(black) lpattern(dash) lwidth(med))
    (The impulse responses of group 1 have confidence bands with dashed lines, whereas group 2 with a shaded area.)

    Thanks a lot,
    Alessandro
    Last edited by Alessandro Franconi; 18 Mar 2021, 04:36.

  • #2
    Markers are present in scatterplots, not line graphs. Perhaps you want:

    Code:
    (scatter upband1 h, connect(l) lcolor(navy) lpattern(longdash) lwidth(thick) msymbol(Dh) msize(large))

    Comment


    • #3
      Thanks!

      Comment

      Working...
      X