<?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 Fun With SAS ODS Graphics: NFL Starting Quarterback Vintages in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-NFL-Starting-Quarterback-Vintages/m-p/895570#M24121</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NflStartingQbVintages.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88247iECC9EE32EFD7DB46/image-size/large?v=v2&amp;amp;px=999" role="button" title="NflStartingQbVintages.png" alt="NflStartingQbVintages.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another NFL Sunday, another NFL chart, this time a SAS ODS Graphics Dot Plot using data from &lt;A href="https://en.wikipedia.org/wiki/List_of_starting_quarterbacks_in_the_National_Football_League" target="_self"&gt;Wikipedia's List of starting quarterbacks in the National Football League&lt;/A&gt;. QB's are presented in draft year order with their draft year marked with a football icon, next to which their draft pick number is displayed. Have a great weekend, all!&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;(&lt;STRONG&gt;Note:&lt;/STRONG&gt; Updated 9/24)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun With SAS ODS Graphics: NFL Starting Quarterback Vintages
  Data as of 9/23/2023 from wikipedia.org/wiki/List_of_starting_quarterbacks_in_the_National_Football_League;
                                                  * Import Wikipedia data that was copy-and-pasted into Excel;
proc import datafile='/home/ted.conway/NFLstartingQBsWikipedia.xlsx' dbms=xlsx out=QB replace;

data QB2;                                         * Prep the data up for charting;
length drafted 3.;                                * Year QB was drafted;
set qb(where=(team^=""));                         * Skip blank Excel rows;
team=scan(team,1,"(");                            * Clean up team name;
team=substr(team,1,length(team)-2);
QB=trim(quarterback)||' ('||trim(team)||')';      * Concatenate QB and team name; 
Drafted=substr("Year drafted (pick)"n,1,4);       * Grab year of draft;
xPickLabel=drafted+.3;                            * Used to plot bar chart with draft pick # label;                
xLastYear=2023.5;                                 * Used to draw horizontal QB reference bar;  
pick=scan("Year drafted (pick)"n,2,"()");         * Extract pick #;
 
proc sort data=qb2; by Drafted descending pick;   * Sort QBs in draft year order;

%SGANNO;      * Anotate chart with NFL.com photo of Mahomes using SAS-provided macros;         
data wine;    * Mahomes 2017 vintage 'wine bottle created with stoneycreekwinepress.com/labelmaker-pro;
%SGIMAGE (image="/home/ted.conway/Mahomes2017Wine.png",drawspace="DATAVALUE",yc1="C. J. Stroud (Houston Texans)",x1=2010.5,height=97,heightunit="PERCENT",anchor="BOTTOM");

ods graphics / antialias height=8.5in width=11in; * Set image size;
proc sgplot data=qb2 noborder noautolegend sganno=wine; * Plot QB's (Dot + Bar Charts);
symbolimage name=football image="/home/ted.conway/MicrosoftFootballIcon.png"; * Custom marker - football icon from PowerPoint;
inset "NFL Starting QB Vintages" "Year Drafted &amp;amp; Pick" / textattrs=(size=20pt) position=topright valuealign=right; * Use inset for title;
hbar QB / barwidth=.1 fillattrs=(color=cxf5f5f5) nooutline response=xLastYear; * Use bar chart to create horizontal reference lines;
hbar QB / datalabel=pick barwidth=.1 fillattrs=(color=cxf5f5f5) nooutline response=xPickLabel; * Use bar chart to plot draft pick # to right of football;
dot QB / markerattrs=(symbol=football size=16pt) response=Drafted categoryorder=respasc; * Plot QBs' draft years using football icon markers;
xaxis display=(nolabel) values=(2009 to 2023 by 1) grid; * QBs were drafted between 2009 and 2023;
yaxis display=(nolabel);                          * Suppress y-axis label;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Football Icon Used for Markers (Courtesy of Microsoft PowerPoint!)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicrosoftFootballIcon.png" style="width: 96px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88244iFB44324EFEA9C6FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="MicrosoftFootballIcon.png" alt="MicrosoftFootballIcon.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Screenshot of Wikipedia Data (Copied-And-Pasted Into Excel)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QuarterbackWikipediaData.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88245i7591A8BDA45FB6BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="QuarterbackWikipediaData.jpg" alt="QuarterbackWikipediaData.jpg" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 24 Sep 2023 14:55:32 GMT</pubDate>
    <dc:creator>tc</dc:creator>
    <dc:date>2023-09-24T14:55:32Z</dc:date>
    <item>
      <title>Fun With SAS ODS Graphics: NFL Starting Quarterback Vintages</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-NFL-Starting-Quarterback-Vintages/m-p/895570#M24121</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NflStartingQbVintages.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88247iECC9EE32EFD7DB46/image-size/large?v=v2&amp;amp;px=999" role="button" title="NflStartingQbVintages.png" alt="NflStartingQbVintages.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another NFL Sunday, another NFL chart, this time a SAS ODS Graphics Dot Plot using data from &lt;A href="https://en.wikipedia.org/wiki/List_of_starting_quarterbacks_in_the_National_Football_League" target="_self"&gt;Wikipedia's List of starting quarterbacks in the National Football League&lt;/A&gt;. QB's are presented in draft year order with their draft year marked with a football icon, next to which their draft pick number is displayed. Have a great weekend, all!&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;(&lt;STRONG&gt;Note:&lt;/STRONG&gt; Updated 9/24)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun With SAS ODS Graphics: NFL Starting Quarterback Vintages
  Data as of 9/23/2023 from wikipedia.org/wiki/List_of_starting_quarterbacks_in_the_National_Football_League;
                                                  * Import Wikipedia data that was copy-and-pasted into Excel;
proc import datafile='/home/ted.conway/NFLstartingQBsWikipedia.xlsx' dbms=xlsx out=QB replace;

data QB2;                                         * Prep the data up for charting;
length drafted 3.;                                * Year QB was drafted;
set qb(where=(team^=""));                         * Skip blank Excel rows;
team=scan(team,1,"(");                            * Clean up team name;
team=substr(team,1,length(team)-2);
QB=trim(quarterback)||' ('||trim(team)||')';      * Concatenate QB and team name; 
Drafted=substr("Year drafted (pick)"n,1,4);       * Grab year of draft;
xPickLabel=drafted+.3;                            * Used to plot bar chart with draft pick # label;                
xLastYear=2023.5;                                 * Used to draw horizontal QB reference bar;  
pick=scan("Year drafted (pick)"n,2,"()");         * Extract pick #;
 
proc sort data=qb2; by Drafted descending pick;   * Sort QBs in draft year order;

%SGANNO;      * Anotate chart with NFL.com photo of Mahomes using SAS-provided macros;         
data wine;    * Mahomes 2017 vintage 'wine bottle created with stoneycreekwinepress.com/labelmaker-pro;
%SGIMAGE (image="/home/ted.conway/Mahomes2017Wine.png",drawspace="DATAVALUE",yc1="C. J. Stroud (Houston Texans)",x1=2010.5,height=97,heightunit="PERCENT",anchor="BOTTOM");

ods graphics / antialias height=8.5in width=11in; * Set image size;
proc sgplot data=qb2 noborder noautolegend sganno=wine; * Plot QB's (Dot + Bar Charts);
symbolimage name=football image="/home/ted.conway/MicrosoftFootballIcon.png"; * Custom marker - football icon from PowerPoint;
inset "NFL Starting QB Vintages" "Year Drafted &amp;amp; Pick" / textattrs=(size=20pt) position=topright valuealign=right; * Use inset for title;
hbar QB / barwidth=.1 fillattrs=(color=cxf5f5f5) nooutline response=xLastYear; * Use bar chart to create horizontal reference lines;
hbar QB / datalabel=pick barwidth=.1 fillattrs=(color=cxf5f5f5) nooutline response=xPickLabel; * Use bar chart to plot draft pick # to right of football;
dot QB / markerattrs=(symbol=football size=16pt) response=Drafted categoryorder=respasc; * Plot QBs' draft years using football icon markers;
xaxis display=(nolabel) values=(2009 to 2023 by 1) grid; * QBs were drafted between 2009 and 2023;
yaxis display=(nolabel);                          * Suppress y-axis label;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Football Icon Used for Markers (Courtesy of Microsoft PowerPoint!)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicrosoftFootballIcon.png" style="width: 96px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88244iFB44324EFEA9C6FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="MicrosoftFootballIcon.png" alt="MicrosoftFootballIcon.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Screenshot of Wikipedia Data (Copied-And-Pasted Into Excel)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QuarterbackWikipediaData.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88245i7591A8BDA45FB6BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="QuarterbackWikipediaData.jpg" alt="QuarterbackWikipediaData.jpg" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2023 14:55:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-NFL-Starting-Quarterback-Vintages/m-p/895570#M24121</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2023-09-24T14:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fun With SAS ODS Graphics: NFL Starting Quarterbacks by Draft Year with Draft Pick</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-NFL-Starting-Quarterback-Vintages/m-p/895573#M24122</link>
      <description>&lt;P&gt;One thing that would really be interesting (at least for me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; Superbowl winning QB's by draft round.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Addendum: or those which are voted best on their position for a year, grouped by draft round.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both would illuminate the relative value of draft position vs. the later success in the league.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2023 09:13:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-NFL-Starting-Quarterback-Vintages/m-p/895573#M24122</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-09-24T09:13:36Z</dc:date>
    </item>
  </channel>
</rss>

