SGSCATTER is not a good choice as a general purpose graphing procedure, if I may say so. Here is how to draw reference lines with annotation in SGSCATTER:
data reflines;
retain drawspace "layoutpercent" linecolor "blue";
input function $ x1 y1 x2 y2;
datalines;
line 11 55.5 53.5 55.5
line 56 55.5 99 55.5
;
proc sgscatter data=sashelp.class sganno=reflines;
compare x=(age height) y=weight / loess=(degree=2);
run;
Positioning the reference lines was by trial and error as you cannot tie their positions to data values.
... View more