The type= option of the keylegend statement allow to keep a subset of the symbol used on the graph.
In the example, a filled symbol is used. It is always possible to resize the rectangle in the legend using scale, fillheigh, fillaspact.
However it is not possible to use these options to resize the symbol. Is there any other option which could be used.
Note: An alternative solution would be to create a specific legenditem only for the symbol (no color).
But here I'm just checking on whether I have missed an option.
proc sgplot data=sashelp.class;
scatter x=weight y=height / filledoutlinedmarkers
markerfillattrs = (color = red)
markeroutlineattrs = (color = blue
thickness = 2)
markerattrs = (size = 30
symbol = DiamondFilled);
keylegend / position=right type=marker;
keylegend / position=right type=markercolor scale=;
keylegend / position=right type=markersymbol;
run;
... View more