Bart Simpson and Regression, Part II
Jeff Cartier of SAS Institute today has provided us with clear proof that our earlier claims about SAS/GRAPH were incorrect. We claimed that while Excel could include a Bart Simpson image as background for a linear regression plot, SAS/GRAPH could not. Cartier’s graphics and SAS code show that SAS/GRAPH is indeed capable of this state-of-the-art statistical graphic.

Here is Jeff’s code:
goptions reset=all dev=gif ftext="Akbar"The Akbar font can be downloaded here. The background image of Bart Simpson is here.
ftitle="Akbar/bo" htext=14pt htitle=18pt
vsize=5in hsize=3in;
title "Bart likes Linear Regression";
footnote j=r "Produced with SAS/Graph(r)";
axis1 minor=none;
axis2 label=(angle=90) minor=none;
symbol1 value=diamond i=rlclm95 width=2 height=2;
proc gplot data=sashelp.class;
plot Weight*Height / haxis=axis1 vaxis=axis2 autovref
iframe="c:\images\bart.png" imagestyle=tile regeqn;
run;
quit;
But wait just a cotton-picking minute Jeff, where’s the R-squared value? Excel could do that!


<< Home