Announcement

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

  • Graph Combine into One Graph with Multiple Lines

    Dear Stata Members,


    I have a question about combining graphs. I know that "graph combine" command can combined multiple graphs to one in a grid format. I was wondering if there is any command that can combine multiple graphs to one graph with multiple lines?

    Thanks

  • #2
    As far as I know, there is no such command. However, some -graph- commands, e.g. -xtline-, have an -overlay- option that has that effect, and some (most if not all -twoway- commands) have an -addplot()- option that also does that.

    But if your need is simply to plot several lines on a common set of axes, there is no need to make separate plots and try to combine them. You can just do -graph twoway line y1 y2 y3 y4 x-. You're not limited to four: you can get as many as you want, and far more than anybody will be able to read!

    Comment


    • #3
      Thank you for your response, Clyde. I will try xtline with the overlay option and twoway with addplot option to see if I can get the desired result. And I will update this question accordingly.

      Comment

      Working...
      X