From: Arthur Tabachneck on
Dan,

I presume that you're asking how to obtain such a line programmatically.

However, if not and you just need the line, would the SAS ODS graphics
editor help you get what you want?

see:
http://support.sas.com/documentation/cdl/en/grstateditug/61951/PDF/default/g
rstateditug.pdf

or, in short form: http://xrl.us/bgrwtz

According to its documentation, it will let you rotate a line in 15 degree
increments thus, if you include a horizontal reference line in the middle of
your graph, you should be able to rotate it to 45 degrees.

Art
---------
On Sun, 3 Jan 2010 09:14:53 -0500, Dan Abner <dan.abner99(a)GMAIL.COM> wrote:

>Hello,
>
>Does anyone know how to obtain a 45 degree reference line (for a qq plot)
in
>PROC SGPLOT?
>
>Thanks,
>
>Dan
From: Ya Huang on
Find the range of x and y for the original data, then make two dummy vars
in the data. For the first records, assign the dummy vars the min values
of the original x and y var range, then for the last records, assign
the dummy vars the max values of the original x and y vars range. With
the pair of dummy vars, you can use second series statement for the 45
degree line. The following, I hard coded the dummy, you can easily get
it done programmatically:


data xx;
set sashelp.class end=end;
if _n_=1 then do; lx=50; ly=50; end;
if end then do; lx=75; ly=150; end;
run;

ods graphics on;

ods rtf file="c:\temp\junk.rtf";

proc sgplot data=xx;
scatter x=height y=weight;
series x=lx y=ly;
run;

ods rtf close;


On Sun, 3 Jan 2010 09:14:53 -0500, Dan Abner <dan.abner99(a)GMAIL.COM> wrote:

>Hello,
>
>Does anyone know how to obtain a 45 degree reference line (for a qq plot)
in
>PROC SGPLOT?
>
>Thanks,
>
>Dan