<?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: SAS Championship Course At-A-Glance in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-SAS-Championship-Course-At-A-Glance/m-p/774425#M22152</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tale of the Tape" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64748iD74124FCAC47A020/image-size/large?v=v2&amp;amp;px=999" role="button" title="golfdistances.png" alt="Tale of the Tape" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Tale of the Tape&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good observations, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;!&lt;A href="https://www.usga.org/content/usga/home-page/handicapping/roh/Content/rules/Appendix%20F%20Establishing%20Par.htm" target="_self"&gt;&amp;nbsp;&lt;/A&gt;Just out of curiosity, I dug up scorecard data for the &lt;A href="https://chicagohistorytoday.wordpress.com/2019/04/05/lost-landmark-evergreen-golf-club/" target="_self"&gt;Evergreen Golf &amp;amp; CC course&lt;/A&gt; (RIP) that I learned to golf on long ago as a teen ($3 18-hole twilight special, IIRC!) to chart how it measured up to the SAS Championship course.&amp;nbsp;For the SAS Championship, the holes are apparently selected from more than one course at the Prestonwood CC and the tees are also likely set back further for the Pros than for mere mortals, which seems to help explain some of the differences in the distributions.&amp;nbsp;&lt;A href="https://www.usga.org/content/usga/home-page/handicapping/roh/Content/rules/Appendix%20F%20Establishing%20Par.htm" target="_self"&gt;According to the USGA&lt;/A&gt;, up to 260 yards can be par 3, 240-490 yards can be par 4, and 450-710 yards can be par 5.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME course url 'https://docs.google.com/spreadsheets/d/1widQUL7LsyodsdrJk8OPMpahhf84Bl88xvpprnOejAk/export?format=csv&amp;amp;gid=0';
proc import datafile=course out=course DBMS=CSV REPLACE; GETNAMES=Yes; DATAROW=2; * Grab SAS Championship course info from Google Sheets;

FILENAME course2 url 'https://docs.google.com/spreadsheets/d/1Jd2FNUU3xGL7K6oOIGW7CgE-hve3YdcRs-_j1Q10I6o/export?format=csv&amp;amp;gid=0';
proc import datafile=course2 out=course2 DBMS=CSV REPLACE; GETNAMES=Yes; DATAROW=2; * Grab Evergreen Park Golf &amp;amp; CC course info from Google Sheets;

data courses(drop=par rename=(parx=PAR));                                    * Merge course data;                             
set course(in=i1) course2;
if i1 then COURSE=' SAS Championship '; else course='Evergreen Park CC';
N=1; parx=put(par,1.)||'   '; output; parx=' ALL'; output;                   * Output twice - once for par, once for 'All';

proc sort; by par course;                                                    * Report by par/course;

ods graphics / width=5in height=5in;                                         * Box/scatter plot comparison of hole lengths by par/course; 
proc sgpanel data=courses noautolegend;                                  
panelby par / onepanel columns=1 sort=data;                              
hbox yards / category=course nooutliers nofill;                              * Box plot distribution of hole lengths;
scatter x=yards y=course / transparency=0 markerattrs=(symbol=circlefilled); * Scatter plot of individual hole lengths;
rowaxistable yards / stat=mean label='Avg' position=left;                    * Display mean hole length in yards;
rowaxistable N / label='N' position=left;                                    * Display # of holes;
colaxis grid; 
format yards 3.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 15 Oct 2021 04:41:41 GMT</pubDate>
    <dc:creator>tc</dc:creator>
    <dc:date>2021-10-15T04:41:41Z</dc:date>
    <item>
      <title>Fun With SAS ODS Graphics: SAS Championship Course At-A-Glance</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-SAS-Championship-Course-At-A-Glance/m-p/773306#M22132</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fore!" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64564iDD164335CB181891/image-size/large?v=v2&amp;amp;px=999" role="button" title="saschampionshipcourse.png" alt="Fore!" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Fore!&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://saschampionship.com/" target="_self"&gt;SAS Championship&lt;/A&gt; tees up this week, so here's a quick bar chart look at the course using &lt;A href="https://www.pgatour.com/champions/tournaments/sas-championship/course.html" target="_self"&gt;PGA-provided data&lt;/A&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: SAS Championship Course-At-A-Glance
   Data source: pgatour.com/champions/tournaments/sas-championship/course.html;
   
FILENAME course url 'https://docs.google.com/spreadsheets/d/1widQUL7LsyodsdrJk8OPMpahhf84Bl88xvpprnOejAk/export?format=csv&amp;amp;gid=0';
proc import datafile=course out=course DBMS=CSV REPLACE; GETNAMES=Yes; DATAROW=2; * Grab SAS Championship course info from Google Sheets;

data logo;                                                                        * Insert SAS Championship logo (source: Wikipedia);
%SGANNO;                                                                          * SAS-provided annotation macros;      
%SGIMAGE(image="/home/ted.conway/sas_championship_logo_wikipedia.png", drawspace="DATAVALUE", yc1="3", x1=545, width=215, widthunit="DATA");

proc sgplot data=course noborder sganno=logo;                                     * Bar chart of yards by hole;
styleattrs datacolors=(cx00c060 cx00ff7f cx018141);                               * Use shades of green to distinguish par 4-3-5 holes;
hbar hole / name="bar" response=yards datalabel group=par grouporder=ascending nooutline baselineattrs=(thickness=0);
keylegend "bar" / location=inside position=bottomright across=1 title="PAR";      * Display par legend at lower right;
xaxis display=(noline noticks) label='Yards';                                     
yaxis display=(noline noticks) label='Holes';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Oct 2021 02:31:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-SAS-Championship-Course-At-A-Glance/m-p/773306#M22132</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2021-10-11T02:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Fun With SAS ODS Graphics: SAS Championship Course At-A-Glance</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-SAS-Championship-Course-At-A-Glance/m-p/773580#M22143</link>
      <description>&lt;P&gt;It is interesting that for this course, the distances do not have a lot of variation when grouped by "par." The Par 3 holes are all ~200 yds, the Par 4 holes are 400 yds, and the Par 5 holes are &amp;gt; 500 yds:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=course;
scatter x=Par y=Yards / datalabel=Hole group=Par;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;There are no holes on this course that are between 200-385 yds.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 10:35:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-SAS-Championship-Course-At-A-Glance/m-p/773580#M22143</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-10-12T10:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Fun With SAS ODS Graphics: SAS Championship Course At-A-Glance</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-SAS-Championship-Course-At-A-Glance/m-p/774425#M22152</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tale of the Tape" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64748iD74124FCAC47A020/image-size/large?v=v2&amp;amp;px=999" role="button" title="golfdistances.png" alt="Tale of the Tape" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Tale of the Tape&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good observations, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;!&lt;A href="https://www.usga.org/content/usga/home-page/handicapping/roh/Content/rules/Appendix%20F%20Establishing%20Par.htm" target="_self"&gt;&amp;nbsp;&lt;/A&gt;Just out of curiosity, I dug up scorecard data for the &lt;A href="https://chicagohistorytoday.wordpress.com/2019/04/05/lost-landmark-evergreen-golf-club/" target="_self"&gt;Evergreen Golf &amp;amp; CC course&lt;/A&gt; (RIP) that I learned to golf on long ago as a teen ($3 18-hole twilight special, IIRC!) to chart how it measured up to the SAS Championship course.&amp;nbsp;For the SAS Championship, the holes are apparently selected from more than one course at the Prestonwood CC and the tees are also likely set back further for the Pros than for mere mortals, which seems to help explain some of the differences in the distributions.&amp;nbsp;&lt;A href="https://www.usga.org/content/usga/home-page/handicapping/roh/Content/rules/Appendix%20F%20Establishing%20Par.htm" target="_self"&gt;According to the USGA&lt;/A&gt;, up to 260 yards can be par 3, 240-490 yards can be par 4, and 450-710 yards can be par 5.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME course url 'https://docs.google.com/spreadsheets/d/1widQUL7LsyodsdrJk8OPMpahhf84Bl88xvpprnOejAk/export?format=csv&amp;amp;gid=0';
proc import datafile=course out=course DBMS=CSV REPLACE; GETNAMES=Yes; DATAROW=2; * Grab SAS Championship course info from Google Sheets;

FILENAME course2 url 'https://docs.google.com/spreadsheets/d/1Jd2FNUU3xGL7K6oOIGW7CgE-hve3YdcRs-_j1Q10I6o/export?format=csv&amp;amp;gid=0';
proc import datafile=course2 out=course2 DBMS=CSV REPLACE; GETNAMES=Yes; DATAROW=2; * Grab Evergreen Park Golf &amp;amp; CC course info from Google Sheets;

data courses(drop=par rename=(parx=PAR));                                    * Merge course data;                             
set course(in=i1) course2;
if i1 then COURSE=' SAS Championship '; else course='Evergreen Park CC';
N=1; parx=put(par,1.)||'   '; output; parx=' ALL'; output;                   * Output twice - once for par, once for 'All';

proc sort; by par course;                                                    * Report by par/course;

ods graphics / width=5in height=5in;                                         * Box/scatter plot comparison of hole lengths by par/course; 
proc sgpanel data=courses noautolegend;                                  
panelby par / onepanel columns=1 sort=data;                              
hbox yards / category=course nooutliers nofill;                              * Box plot distribution of hole lengths;
scatter x=yards y=course / transparency=0 markerattrs=(symbol=circlefilled); * Scatter plot of individual hole lengths;
rowaxistable yards / stat=mean label='Avg' position=left;                    * Display mean hole length in yards;
rowaxistable N / label='N' position=left;                                    * Display # of holes;
colaxis grid; 
format yards 3.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Oct 2021 04:41:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-SAS-Championship-Course-At-A-Glance/m-p/774425#M22152</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2021-10-15T04:41:41Z</dc:date>
    </item>
  </channel>
</rss>

