Announcement

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

  • How to make twoway line graph over group in the same figure

    Hello colleagues,

    How can I make twoway line graph across grouping variable on the same figure?
    For instance, when I use the following command, I will get separate graphs by grouping variable. But I want to get all of them in the same figure,

    Code:
     webuse nlswork.dta
    twoway line ln_wage year if (idcode ==1 | idcode ==45 | idcode ==118), by(race)

    Attached Files
    Last edited by Anagaw Derseh; 12 May 2021, 02:46.

  • #2
    Perhaps check out xtline and its options or

    Code:
    xtset 
    line ln_wage year, c(L)

    Comment


    • #3
      Thank you so much Nick Cox xtline works for me!!

      Comment

      Working...
      X