Hello


I want to combine these two graphs into one graphs please

twoway (scatter ed yearofbirth) || (lfit ed yearofbirth if yearofbirth>=1967, lstyle(dash)) || (lfit ed yearofbirth if yearofbirth < 1964, lstyle(dash)) if rural==1 , xline(1967 1965) legend(off) title(Years of School) xtitle(Birth year )
graph save ed_rural, replace




twoway (scatter ed yearofbirth) || (lfit ed yearofbirth if yearofbirth>=1967, lstyle(dash)) || (lfit ed yearofbirth if yearofbirth < 1964, lstyle(dash)) if rural==0 , xline(1967 1965) legend(off) title(Years of School) xtitle(Birth year )
graph save ed_urban, replace



data



----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. For more info, type help dataex
clear
input int yearofbirth float(rural edu)
1945 0  5.461538
1945 1 3.0535715
1946 0 4.4444447
1946 1  2.981132
1947 0 4.4583335
1947 1 3.0229886
1948 0  7.466667
1948 1  3.486111
1949 0  6.466667
1949 1 3.4285715
1950 0  5.333333
1950 1  3.837838
1951 0  7.793103
1951 1  3.505618
1952 0      7.36
1952 1  3.639535
1953 0  6.193548
1953 1         4
1954 0  6.254546
1954 1  3.862857
1955 0      6.86
1955 1  3.469388
1956 0  7.218391
1956 1 3.8533835
1957 0  6.893617
1957 1 4.0705395
1958 0  6.971428
1958 1 4.1626296
1959 0  7.011765
1959 1  3.993243
1960 0    7.4375
1960 1 3.8481014
1961 0  7.695652
1961 1 4.3138685
1962 0  7.971292
1962 1 4.3483872
1963 0  8.376344
1963 1  4.818792
1967 0  9.774648
1967 1  7.380208
1968 0  9.903571
1968 1  7.065299
1969 0  9.743494
1969 1  7.844485
1970 0  9.916924
1970 1  7.581955
1971 0 10.474684
1971 1  7.606625
1972 0 10.030556
1972 1  7.788915
1973 0 10.155216
1973 1  7.918845
1974 0  9.981396
1974 1  7.819808
1975 0   10.1309
1975 1  7.725707
1976 0 10.116773
1976 1  7.886999
1977 0   10.1833
1977 1  7.752955
1978 0  10.25701
1978 1   7.91217
1979 0 10.060362
1979 1  7.930493
1980 0 10.401316
1980 1  8.386111
1981 0 10.675324
1981 1  8.188822
1982 0 10.276224
1982 1  8.335929
1983 0 10.234568
1983 1   8.07248
1984 0 10.370723
1984 1  8.129973
1985 0  10.37156
1985 1  8.451258
1986 0     10.67
1986 1  8.335877
1987 0  10.58913
1987 1  8.426045
1988 0 10.391775
1988 1  8.287082
1989 0 10.039095
1989 1   8.25811
1990 0 10.204603
1990 1  8.161189
1991 0 10.863905
1991 1  8.934037
1992 0  10.68661
1992 1 8.7576475
1993 0  10.43131
1993 1  8.633952
1994 0 10.023728
1994 1  8.825364
1995 0  9.856209
1995 1  8.348605
1996 0 10.740332
1996 1  9.220834
1997 0  10.17801
1997 1   8.86036
end