I heard that show='ATTRMAP' will show the missing group in the legend. I tried the following code but it is not working. Can anyone help ? thanks. data order; input Value $ n; retain ID 'A' Show 'AttrMap'; FillStyle = cats('GraphData', n); LineStyle = cats('GraphData', n); MarkerStyle = cats('GraphData', n); TextStyleElement = cats('GraphData', n); datalines; F 2 M 1 ; run; data test; set sashelp.class; if sex='F' then delete; run; ods listing close; ods rtf file='c:\mytest.rtf'; proc sgplot data=test dattrmap=order ; scatter x =height y = weight / group=sex attrid=A name="sct"; keylegend "sct" / noborder position=bottom ; run; ods rtf close; ods listing;
... View more