primary = True|False 一个layout中有多个plot时,指定一个作为primary。建立坐标轴刻度什么的
data GTL_GS_Labs_by_Week; label sgot="SGOT"; label aph="ALKPHOS"; label visit="Study Week"; input visit $ 1-10 treatment $ sgot aph; datalines; SCREENING PLACEBO . 108.943 WEEK 2 PLACEBO 10.2941 83.740 WEEK 4 PLACEBO 16.1765 76.423 WEEK 6 PLACEBO 17.6471 86.179 WEEK 8 PLACEBO 11.7647 67.480 WEEK 10 PLACEBO 14.7059 68.293 WEEK 12 PLACEBO 13.2353 73.171 WEEK 14 PLACEBO 12.5000 74.797 SCREENING ACTIVE 12.5000 66.667 WEEK 2 ACTIVE 17.3077 57.961 WEEK 4 ACTIVE 17.9487 68.873 WEEK 6 ACTIVE 26.9231 98.748 WEEK 8 ACTIVE 25.9615 98.211 WEEK 10 ACTIVE 27.2436 100.179 WEEK 12 ACTIVE 29.9679 104.293 WEEK 14 ACTIVE 26.9231 115.921 ; run; ods html; proc template; define statgraph _datapanel; begingraph; layout datapanel classvars = (treatment) / columns = 1 headerlabeldisplay = value rowaxisopts = ( griddisplay = on) columnaxisopts = (griddisplay = on tickvalueattrs = (size = 5)); layout prototype / cycleattrs = true; seriesplot x = visit y = sgot / primary = true display = (markers) markerattrs = (size = 9px weight = bold) lineattrs = (thickness = 2px) name = "s"; seriesplot x = visit y = aph / yaxis = y2 display = (markers) markerattrs = (size = 9px weight = bold) lineattrs = (thickness = 2px) name = "s1"; endlayout; endlayout; discretelegend "s" "s1"; endgraph; end; run; proc sgrender data = GTL_GS_Labs_by_Week template = _datapanel; run;