In the legend I can only see 3 categories. Thanks , Best regards
----------------------- copy starting from the next line -----------------------
------------------ copy up to and including the previous line ------------------
twoway connected raiz_seg tec_imagen_edad if gen1==2, c(L) ms(i) ytitle("") ///
|| connected raiz_seg tec_imagen_edad if gen1==3, c(L) ms(i) ytitle("") ///
||connected raiz_seg tec_imagen_edad if gen1==5, c(L) ms(i) ytitle("") ///
||connected raiz_seg tec_imagen_edad if gen1==6, c(L) ms(i) ytitle("") ///
||connected raiz_seg tec_imagen_edad if gen1==7, c(L) ms(i) ytitle("") ///
|| , title(RaĆz) legend(label(2 "TGFBR1") label(3 "TGFBR2") label(5 "SMAD3") label(6 "TGFB2") label(7 "TGFB3"))
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str8 id byte redcap_repeat_instance float(fech_diam_ao tec_imagen_edad) byte raiz_seg float raiz_campens byte asc_seg float asc_campens byte gen1 float(time time_follow) "1317-10" 2 21707 45.6 35 . 32 . 6 1 1.9375434 "1317-10" 1 22405 47.5 36 .5 30 -.3 6 2 1.9375434 "1317-47" 2 18072 17.5 31 . 21 . 2 1 0 "1317-6" 1 21383 21.6 48 5.4 39 4.1 2 1 0 "1317-7" 1 20816 36.4 42 . 30 . 6 1 3.983345 "1317-7" 3 20986 36.9 42 4.4 30 1.5 6 2 3.983345 "1317-7" 2 21017 37 43 4.6 27 .5 6 3 3.983345 "1317-7" 4 21532 38.4 42 4.3 28 .8 6 4 3.983345 "1317-7" 5 21886 39.4 42 4.2 23 -1.2 6 5 3.983345 "1317-7" 6 22251 40.4 41 3.9 30 1.3 6 6 3.983345 "1317-8" 2 21439 46.9 29 . 24 . 6 1 3.042332 "1317-8" 5 22266 49.2 29 -.1 28 .1 6 2 3.042332 "1317-8" 4 22535 49.9 29 . 25 . 6 3 3.042332 "1318-2" 1 22602 7.8 29 3.8 18 -.2 2 1 0 "1318-3" 1 22617 9 25 1.6 20 .4 3 1 0 "1318-5" 1 22666 4.9 25 3.3 19 2 2 1 0 "1318-6" 1 22343 10 26 1.5 21 .7 3 1 0 "1318-7" 1 22554 11.2 23 .7 18 -.5 7 1 0 "1318-8" 1 22757 3 20 1.5 14 -.6 5 1 0 "1319-10" 1 19152 13.7 37 2.7 32 2.7 2 1 8.160999 "1319-10" 2 22092 21.7 45 3.3 46 4.9 2 2 8.160999 "1319-110" 1 22358 32.2 36 . 29 . 2 1 0 "1319-9" 1 19327 44.6 46 3.5 37 2 2 1 0 "1321-1" 2 21382 48.7 45 2.6 36 1.2 7 1 .5995836 "1321-1" 4 21598 49.3 47 . 40 . 7 2 .5995836 "1321-11" 1 21712 27.9 46 2.9 27 -1.1 5 1 2.539903 "1321-11" 2 22627 30.4 34 -.9 25 -2.2 5 2 2.539903 "1321-12" 1 22560 72.8 52 5.2 31 .3 5 1 .0888272 "1321-12" 2 22592 72.9 27 -1.5 31 .3 5 2 .0888272 "1321-14" 2 22564 53 40 1.7 36 1.4 5 1 .1054823 "1321-14" 1 22602 53.1 37 . 32 . 5 2 .1054823 "1321-15" 1 22199 30.2 31 . 29 . 5 1 0 "1321-16" 2 21500 55.9 28 -2.6 34 .7 5 1 3.03678 "1321-16" 3 22293 58.1 29 -2.2 34 .6 5 2 3.03678 "1321-16" 1 22594 58.9 30 . 31 . 5 3 3.03678 "1321-17" 1 22028 41.4 52 4.8 45 4 5 1 1.515614 "1321-17" 2 22207 41.9 49 4.2 40 2.8 5 2 1.515614 "1321-17" 3 22574 42.9 40 1.8 35 1.4 5 3 1.515614 "1321-18" 1 15715 32 63 . 51 . 5 1 18.692575 "1321-18" 2 22342 50.2 40 1.8 40 2.6 5 2 18.692575 "1321-18" 3 22449 50.4 35 .2 35 1.2 5 3 18.692575 "1321-19" 1 22651 16.6 36 4 26 1.4 5 1 .2109646 "1321-19" 2 22727 16.8 36 3 27 1.2 5 2 .2109646 "1321-2" 1 22111 43.9 37 2.3 30 .8 7 1 1.0909091 "1321-2" 2 22504 45 37 2.3 29 .5 7 2 1.0909091 "1321-20" 2 20656 18.9 33 2.6 26 1.2 5 1 5.696044 "1321-20" 3 21868 22.2 35 2.9 27 1.2 5 2 5.696044 "1321-20" 1 22375 23.6 36 3 25 .2 5 3 5.696044 "1321-20" 4 22708 24.5 37 3.4 32 2.6 5 4 5.696044 "1321-21" 1 22587 66.2 40 2.3 41 2.8 2 1 .2387231 "1321-21" 2 22673 66.5 40 1.9 41 2.5 2 2 .2387231 "1321-23" 1 22902 49.3 33 1.3 25 -.9 5 1 .08049966 "1321-23" 2 22931 49.4 33 1.3 25 -.9 5 2 .08049966 "1321-7" 1 20457 37.8 51 4.4 55 5.9 3 1 5.643303 "1321-7" 3 22403 43.1 31 -1.7 31 -.2 3 2 5.643303 "1321-7" 2 22490 43.3 30 -2.1 37 1.6 3 3 5.643303 "1321-8" 1 19583 42.5 70 9 73 9.3 2 1 7.675226 "1321-8" 2 22348 50.1 32 -.5 32 .5 2 2 7.675226 "1322-12" 1 22585 36.6 37 1.7 27 -.7 2 1 0 "1322-18" 1 22434 9.3 31 4.1 27 3.5 3 1 0 "1322-20" 2 22524 51.6 32 .8 35 2.1 2 1 0 "1322-22" 1 22410 40.2 37 2.3 33 1.8 3 1 0 "1322-23" 1 22530 24.1 34 2.8 30 2.2 3 1 0 "1322-25" 1 22579 17.1 43 4.3 29 1.4 3 1 .50520474 "1322-25" 2 22761 17.6 45 4.7 31 2 3 2 .50520474 "1322-28" 1 22410 47.7 34 1 35 1.9 3 1 0 "1322-29" 1 22631 10.9 29 2.4 17 -1.9 3 1 0 "1322-30" 1 22631 8.5 20 -.4 17 -.8 3 1 0 "1322-34" 2 22313 50.5 45 2.8 28 -1.2 3 1 0 "1322-35" 1 20194 42.2 34 .1 28 -.7 3 1 0 "1322-37" 1 21946 20.9 29 1.1 21 -1.1 3 1 0 "1322-39" 2 18932 14.7 31 2 22 -.3 3 1 9.346288 "1322-39" 1 22299 24 38 3.7 31 2.4 3 2 9.346288 "1322-4" 1 22390 26.3 31 1.2 25 -.1 2 1 0 "1322-44" 2 22159 19.8 27 .6 19 -1.8 3 1 1.1658571 "1322-44" 1 22579 20.9 30 1.6 19 -1.9 3 2 1.1658571 "1322-7" 2 22341 44.4 29 -.4 24 -1.5 5 1 0 "1365-10" 3 21454 27.4 48 5.6 30 1.6 3 1 3.208883 "1365-10" 2 21506 27.5 47 5.4 28 .9 3 2 3.208883 "1365-10" 1 22347 29.8 23 -2.1 29 1.1 3 3 3.208883 "1365-10" 4 22580 30.5 30 .5 28 .6 3 4 3.208883 "1365-10" 5 22610 30.5 31 .8 28 .6 3 5 3.208883 "1365-11" 3 19652 59 45 3.6 45 3.9 2 1 6.703678 "1365-11" 4 19680 59 47 4 44 3.6 2 2 6.703678 "1365-11" 2 19764 59.3 45 3.6 46 4.1 2 3 6.703678 "1365-11" 1 22067 65.6 30 -.7 22 -3.2 2 4 6.703678 "1365-12" 5 19232 52.3 50 4.2 44 3.4 2 1 8.743928 "1365-12" 6 19255 52.4 51 4.4 48 4.3 2 2 8.743928 "1365-12" 2 20471 55.7 33 -.7 33 .4 2 3 8.743928 "1365-12" 3 20471 55.7 30 -1.7 30 -.6 2 4 8.743928 "1365-12" 1 22195 60.5 32 -1.1 32 -.1 2 5 8.743928 "1365-12" 4 22382 61 30 -1.9 30 -.7 2 6 8.743928 "1365-13" 1 22701 71.5 39 2.3 39 2.5 6 1 0 "1365-14" 1 21978 31.4 35 2.4 35 3 5 1 2.3483691 "1365-14" 3 22027 31.6 29 1.4 25 .6 5 2 2.3483691 "1365-14" 4 22292 32.3 33 1.9 27 .6 5 3 2.3483691 "1365-14" 2 22824 33.7 35 2.4 35 3 5 4 2.3483691 "1365-2" 1 21812 30.5 50 5.1 36 2.5 6 1 .0111034 "1365-2" 2 21816 30.5 54 6.1 47 5.2 6 2 .0111034 "1365-3" 1 20767 46.7 37 2.4 39 3.4 2 1 4.6190147 end format %dM_d,_CY fech_diam_ao label values gen1 gen1_ label def gen1_ 2 "TGFBR1", modify label def gen1_ 3 "TGFBR2", modify label def gen1_ 5 "SMAD3", modify label def gen1_ 6 "TGFB2", modify label def gen1_ 7 "TGFB3", modify
twoway connected raiz_seg tec_imagen_edad if gen1==2, c(L) ms(i) ytitle("") ///
|| connected raiz_seg tec_imagen_edad if gen1==3, c(L) ms(i) ytitle("") ///
||connected raiz_seg tec_imagen_edad if gen1==5, c(L) ms(i) ytitle("") ///
||connected raiz_seg tec_imagen_edad if gen1==6, c(L) ms(i) ytitle("") ///
||connected raiz_seg tec_imagen_edad if gen1==7, c(L) ms(i) ytitle("") ///
|| , title(RaĆz) legend(label(2 "TGFBR1") label(3 "TGFBR2") label(5 "SMAD3") label(6 "TGFB2") label(7 "TGFB3"))
Comment