Hello dears sas users
My problem is the following:
imagine that i have a plot to draw and i want also to add in the graphic an equation
is it possible ?
because for the moment, i work like that but if there is a shorter and easier way to do it, it would be nice
here is my code:
set sashelp.class end=fin;
x_1= _n_ * 3;
y_1= _n_ * 3;
if _n_ = 1 then do;; x_1=0; y_1=0; end;
if fin then do; x_1=80; y_1=80; end;
title 'is there a shorter way ???';
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.