If you're doing a regression like, you can use the 'regeqn' gplot option, such as:
symbol1 interpol=rcclm95 value=circle cv=red ci=pink co=blue;
proc gplot data=sashelp.class;
plot height*weight=1 / regeqn;
run;
-----
Otherwise, you can use the 'note' option to print some text (equation) such as:
symbol v=dot i=none;
proc gplot data=sashelp.class;
plot height*weight;
note move=(20,80)pct c=blue height=3.5pct font="arial" 'Y=X';
run;
-----
If the equation doesn't have to be on the graph itself, you can put some text in a
'title2' or a 'footnote' statement.
And, of course, you could annotate some text for the equation.
And, if the equation doesn't lend itself to a simple single line of text, you could
create a jpg image containing the equation (created using a fancy word-processor
or other tool) and then annotate that image onto the graph.
-----