output is attached. discreteattribmap working for scatter but not matching with line color from 'line' of series plot. I need line,symbol color,symbol shape need to merged in legend and plot. can anybody help? trt= 'Drug A' or 'Drug B' trtn= 'Drug A(n=200)' or 'Drug B(n=230)' proc template; define statgraph order; begingraph; layout overlay/yaxisopts=(label="Concenration mg/L") xaxisopts=(label="Week"); ScatterPlot X=ndy Y=meancon / GROUP=trt NAME="scatter" YErrorLower=EVAL(meancon-stdcon) YErrorUpper=EVAL(meancon+stdcon); SeriesPlot X=ndy Y=meancon / GROUP=trtn name = 'line' ; mergedlegend 'scatter' 'line' / ; ; EndLayout ; EndGraph ; END; RUN; ods rtf file = 'C:\Users\sasgraph_lib\meanplot1.rtf' style = mystyle; PROC SGRENDER DATA=pk2 dattrmap = sym TEMPLATE=order ; dattrvar trt ='kk' ; RUN; quit; ods rtf close; ods listing;
... View more