Trying to create something similar to the following whereby the legend for the red and green line is within the box.

However, using the code I have, the legend for the line still appears by itself:
proc univariate data=Score noprint plot;
var Predp;
class AAA;
histogram Predp /
kernel (k=normal color=green c = 0.75 l=1);
inset n ='N' (comma6.0) mean ='Mean' (6.2)
median ='Median' (6.2) mode ='Mode'(6.2)/ position=NE;
run;
