Hello, I am wondering if it is possible to add multiple symbols to one legend line. For example, the Flowering Status legend: I would like to have on the same line for 'Flowering', one green, one black, and one goldenrod coloured filled circle (so three circles of different colours) and the same for "Not Flowering' but for open circles. I have attached the code I used to generate the figure below and what the current figure looks like. Thank you for any help resolving this conundrum. ods graphics on / noborder attrpriority=none imagemap=off antialias imagename="allo" reset=index;
proc sgplot data=test noautolegend noborder;
styleattrs datacontrastcolors=(goldenrod green black)
datacolors=(goldenrod green black)
datalinepatterns=(solid)
datasymbols=(circlefilled circle);
reg x=logtotclonemass y=logrhiz / group=fate2 nomarkers lineattrs=(thickness=3);
series x=logtotclonemass y=logrhiz / group=fate2 grouporder=reversedata groupms=flowering lineattrs=(thickness=0) markers markerattrs=(size=7) ;
xaxis label="Log aboveground biomass (g)" labelattrs=(color=black size=14) valueattrs=(color=black size=13) ;
yaxis label="Log caudex biomass (g)" labelattrs=(color=black size=14) valueattrs=(color=black size=13) ;
legenditem type=line name="V" / label="Vegetative" lineattrs=(thickness=2 color=green pattern=solid);
legenditem type=line name="R" / label="Reproductive" lineattrs=(thickness=2 color=goldenrod pattern=solid);
legenditem type=line name="D" / label="Dead" lineattrs=(thickness=2 color=black pattern=solid);
legenditem type=marker name="F" / label="Flowering" markerattrs=(symbol=circlefilled color=DAGR);
legenditem type=marker name="NF" / label="Not Flowering" markerattrs=(symbol=circle color=DAGR);
keylegend "V" "R" "D" / location=outside position=bottom noborder down=1 outerpad=(top=6mm) type=line
title="Fate of Main Stem" titleattrs=(color=black size=13) valueattrs=(color=black size=13);
keylegend "F" "NF" / title="Flowering Status" location=inside position=topleft noborder down=3 /*type=markersymbol*/
titleattrs=(color=black size=10) valueattrs=(color=black size=10) autoitemsize;
run;
ods graphics off;
... View more