* Fun With SAS ODS Graphics: Super Bowl LVI QB Boxplot Tale of the Tape (Burrow vs. Stafford)
Football markers courtesy of Bruno Landowski thenounproject.com/icon/football-243375/;
proc import file='/home/ted.conway/QBLVI.xlsx' dbms=xlsx out=qb replace; * Grab 2021 regular/postseason QB stats (copied-and-pasted from NFL.com);
%SGANNO; * Anotate chart with NFL.com potos of Burrow, Stafford using SAS-provided macros;
%SGIMAGE (image="/home/ted.conway/burrow.jpg",drawspace="DATAVALUE",xc1="Joe Burrow",y1=-10,height=140,heightunit="DATA",anchor="BOTTOM");
%SGIMAGE (image="/home/ted.conway/stafford.jpg",drawspace="DATAVALUE",xc1="Matthew Stafford",y1=-10,height=140,heightunit="DATA",anchor="BOTTOM");
proc sgplot data=qb noautolegend sganno=qbpics; * Annotated box + scatter plot of passing yardage in each game of 2021 season;
inset "SUPER BOWL LVI" / textattrs=(size=14pt weight=bold) position=top;
symbolimage name=football image='/home/ted.conway/football.png'; * Use football image for scatterplot markers;
scatter y=YDS x=QB / markerattrs=(symbol=football size=24pt); * Markers with passing yards in each of the 2021 games (pre- and post-season);
vbox YDS / category=QB boxwidth=.25 nofill meanattrs=(color=red symbol=diamondfilled); * Boxplot to show distributions (quartiles + mean);
xaxis grid display=(nolabel) discreteorder=data;
yaxis display=all label="PASSING YARDS IN EACH 2021 REGULAR/POSTSEASON GAME" min=-15 offsetmin=0;
inset "QB MATCHUP" / textattrs=(size=12pt weight=bold) position=bottom;
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.