I do not know how to create separate legends inside each cell in PROC SGPANEL. However, you can use PROC SGPLOT with a BY statement and then use ODS LAYOUT GRIDDED statement to arrange the plots into a panel. See
"Using the ODS statement to add layers in your ODS sandwich"
and
"Arrange matrices and graphs in a gridded layout"
... View more