Rick,

thanks for posting this

http://blogs.sas.com/content/iml/2011/07/27/add-a-diagonal-line-to-a-scatter-plot-the-sas-9-3-way/

about adding a sloped line to a scatter plot. For some reason I can't make it work on a plot
where I put both axis on a log10 scale, see code below. The SpititStLouis.csv file is available
at http://www.stat.washington.edu/fritz/Stat302-Winter2013Data.html.

Can you provide a clue on how to do this. In R it is easy enough using abline(a,b)
after doing a plot(..., log="xy")

I have been searching on the web, but can't find anything.

Thanks much

Fritz

data spirit;
infile "U:\data\SpiritStLouis.csv" dsd firstobs=2;
input gas weight headwind TO_distance;
TO_DistL10 = log10(TO_Distance);
weightL10 = log10(weight);
run;
title "Spirit of St. Louis Takeoff Distance L10";
proc print data = spirit;
run;
title "Scatter Plot with Regression Line L10";
proc sgplot data=spirit;
scatter y = weight x=TO_distance;

yaxis type=log logstyle=logexpand logbase=10
min =2000 max=6000;
xaxis type=log logstyle=logexpand logbase=10
min = 100 max=3000;
lineparm x=500 y=3 slope=1.5;
run;