Announcement

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

  • Put xline in front of a histogram

    I have a histogram in Stata and want to plot two vertical lines in front of it. However, when I use xline(), the lines are always in the background. How can I put the two additional lines in the front?

    Code:
    histogram var1, fraction xline(0.0, lcolor(black)) xline(0.046, lcolor(red) lpattern(dash))

  • #2
    http://www.stata-journal.com/article...article=gr0067 gives a fairly detailed discussion of related matters.

    If someone insists on lines on top, you could use scatteri to plot pairs of points and recast them as lines.

    Comment

    Working...
    X