<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Fun With SAS ODS Graphics: Super Bowl LV QB Boxplot Matchup (Brady vs Mahomes) in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Super-Bowl-LV-QB-Boxplot-Matchup-Brady/m-p/717699#M21027</link>
    <description>Hey. Sanjay. Funny you should ask - I had the SYMBOLIMAGE statements coded up, but decided to opt for annotation. SYMBOLIMAGE could've done the trick, but thought I might be resizing the graph and specifying the image height in terms of data values (a neat option, btw!) would cause it to self-adjust. Tuns out I never did, but you know how programmers are sometimes loathe to change code that's working!</description>
    <pubDate>Mon, 08 Feb 2021 20:39:04 GMT</pubDate>
    <dc:creator>tc</dc:creator>
    <dc:date>2021-02-08T20:39:04Z</dc:date>
    <item>
      <title>Fun With SAS ODS Graphics: Super Bowl LV QB Boxplot Matchup (Brady vs Mahomes)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Super-Bowl-LV-QB-Boxplot-Matchup-Brady/m-p/717457#M21024</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Super Bowl LV QB Boxplot Matchup" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54440iB121E006EB4820B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="superbowllvqbs.png" alt="Super Bowl LV QB Boxplot Matchup" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Super Bowl LV QB Boxplot Matchup&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Pre-gaming with SAS ODS Graphics!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":american_football:"&gt;🏈&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun w/SAS ODS Graphics: Super Bowl LV QB box plot pass yardage matchup (Brady vs. Mahomes)
  Football markers courtesy of Darrin Loeliger thenounproject.com/search/?q=football&amp;amp;i=900778;

proc import file='/folders/myfolders/QB.xlsx' dbms=xlsx out=qb replace;  * Grab 2020 season QB stats (copied-and-pasted from NFL.com); 

%SGANNO;  * Anotate chart with NFL.com potos of Brady, Mahones using SAS-provided macros;         
data qbpics;
%SGIMAGE (image="/folders/myfolders/brady.jpg",drawspace="DATAVALUE",xc1="Tom Brady",y1=5,height=140,heightunit="DATA",anchor="BOTTOM");
%SGIMAGE (image="/folders/myfolders/mahomes.jpg",drawspace="DATAVALUE",xc1="Patrick Mahomes",y1=5,height=140,heightunit="DATA",anchor="BOTTOM");

proc sgplot data=qb noautolegend sganno=qbpics;  * Annotated box + scatter plot of passing yardage in each game of 2020 season; 
inset "SUPER BOWL LV" / textattrs=(size=14pt weight=bold) position=top;
symbolimage name=football image='/folders/myfolders/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 2020 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 - 2020 SEASON GAMES" min=0 offsetmin=0;
inset "VS" / textattrs=(size=12pt weight=bold) position=bottom;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QB Game Stats (Source: NFL.com)" style="width: 562px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54441i772762AD8F45531C/image-size/large?v=v2&amp;amp;px=999" role="button" title="qb.jpg" alt="QB Game Stats (Source: NFL.com)" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;QB Game Stats (Source: NFL.com)&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2021 22:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Super-Bowl-LV-QB-Boxplot-Matchup-Brady/m-p/717457#M21024</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2021-02-07T22:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Fun With SAS ODS Graphics: Super Bowl LV QB Boxplot Matchup (Brady vs Mahomes)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Super-Bowl-LV-QB-Boxplot-Matchup-Brady/m-p/717463#M21025</link>
      <description>&lt;P&gt;Nice work TC.&amp;nbsp; One question...why did you not use SymbolImage for the pictures of Brady and Mahomes too?&amp;nbsp; Was annotation easier?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2021 23:56:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Super-Bowl-LV-QB-Boxplot-Matchup-Brady/m-p/717463#M21025</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2021-02-07T23:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Fun With SAS ODS Graphics: Super Bowl LV QB Boxplot Matchup (Brady vs Mahomes)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Super-Bowl-LV-QB-Boxplot-Matchup-Brady/m-p/717699#M21027</link>
      <description>Hey. Sanjay. Funny you should ask - I had the SYMBOLIMAGE statements coded up, but decided to opt for annotation. SYMBOLIMAGE could've done the trick, but thought I might be resizing the graph and specifying the image height in terms of data values (a neat option, btw!) would cause it to self-adjust. Tuns out I never did, but you know how programmers are sometimes loathe to change code that's working!</description>
      <pubDate>Mon, 08 Feb 2021 20:39:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Super-Bowl-LV-QB-Boxplot-Matchup-Brady/m-p/717699#M21027</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2021-02-08T20:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fun With SAS ODS Graphics: Super Bowl LV QB Boxplot Matchup (Brady vs Mahomes)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Super-Bowl-LV-QB-Boxplot-Matchup-Brady/m-p/717728#M21028</link>
      <description>Oops-looks like I responded in the Tags box and it parsed things out! Fixed now!</description>
      <pubDate>Mon, 08 Feb 2021 20:39:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Super-Bowl-LV-QB-Boxplot-Matchup-Brady/m-p/717728#M21028</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2021-02-08T20:39:42Z</dc:date>
    </item>
  </channel>
</rss>

