In reply to Leonid Batkhan.

This is the code I'm using.

proc sgplot data=scatterplot noautolegend ;
title "Scatter plot with regression line";
reg y=HbA1c x=age_HbA1c /group=antipsy_use NOMARKERS CLM;
run; quit;

All I had to do was add in the NOMARKERS option!