Announcement

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

  • Short reference lines in Stata

    Using the twoway() command, how do I add a reference line that runs from say (1,0) to (1,10)? The option xline(1) almost works, but it runs all the way to the top of the graph. I only want to run up to y=10.
    Last edited by paulvonhippel; 14 Jun 2018, 13:49.

  • #2
    You can add a second tw using the ||-notation:
    Code:
    tw scatteri -5 -5  15 5 || pci  0 1 10 1
    Last edited by Bjarte Aagnes; 14 Jun 2018, 14:32.

    Comment


    • #3
      I'm sure you know this, but it can be helpful to others: the quick way is to use the "add line" tool.
      Last edited by Marcos Almeida; 14 Jun 2018, 15:02.
      Best regards,

      Marcos

      Comment

      Working...
      X