<?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: And the Academy Award for Best Picture goes to? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-And-the-Academy-Award-for-Best-Picture/m-p/919721#M24441</link>
    <description>&lt;P&gt;Update&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OppenheimerOscars.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94548iF8F856E082479D29/image-size/medium?v=v2&amp;amp;px=400" role="button" title="OppenheimerOscars.jpg" alt="OppenheimerOscars.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2024 04:05:26 GMT</pubDate>
    <dc:creator>tc</dc:creator>
    <dc:date>2024-03-11T04:05:26Z</dc:date>
    <item>
      <title>Fun With SAS ODS Graphics: And the Academy Award for Best Picture goes to?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-And-the-Academy-Award-for-Best-Picture/m-p/919665#M24436</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BestPicture.gif" style="width: 768px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94539i4B913F0632C8998B/image-size/large?v=v2&amp;amp;px=999" role="button" title="BestPicture.gif" alt="BestPicture.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://www.oscars.org/" target="_self"&gt;96th Academy Awards&lt;/A&gt; airs Sunday and - as the above SAS ODS Graphics dot plot illustrates - the oddsmakers certainly like Oppenheimer's chances of winning Best Picture. Enjoy the show!&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: And the Academy Award for Best Picture goes to?
  Image thumbnails courtesy of bing.com
  Odds from sportingnews.com/us/betting/news/oscars-2024-betting-odds-category-predictions-favorites/8b210b67cec4072bff5d3045 
  American odds to probability formula from calculatorandconverter.com/betting/bet-calculator-odds-converter;
  
data bestpicturenominees;                    /* Read in American betting odds of winning and calc probabilities */
input film $26. odds;
if odds&amp;gt;0 then probability=100/(odds+100);
else           probability=-odds/(-odds+100);
datalines;
Oppenheimer                 -5000
Poor Things                 +2000
The Zone of Interest        +2500
The Holdovers               +2800
Barbie                      +3500
Killers of the Flower Moon  +4000
Anatomy of a Fall           +4000
American Fiction            +8000
Past Lives                 +10000
Maestro                    +15000
;
ods _all_ close;                            /* Plot films + odds on animated dot plot */
options papersize=('8 in', '4.5 in') printerpath=gif animation=start animduration=1 animloop=YES NOANIMOVERLAY nodate nonumber;
ods printer file='/home/ted.conway/BestPicture.gif';
ods graphics / antialias width=8in height=4.5in imagefmt=GIF antialias; 

%macro films;                              /* Ten frames, one for each film thumbnail image */
%do i=1 %to 10;
%let image=%scan("Oppenheimer, PoorThings, TheZoneOfInterest, TheHoldovers, Barbie,
                  AnatomyOfAFall, KillersOfTheFlowerMoon, AmericanFiction, PastLives, Maestro", &amp;amp;i, " ,");

data filmimage;                           /* Poistion images in center of plot area */
retain function "Image" anchor "center" x1 50 y1 50 
       drawspace "wallpercent" x1space "wallpercent" y1space "wallpercent" layer "front" 
       id "filmimage" Image "/home/ted.conway/BestPicture/&amp;amp;image..jpg";
                                          /* Dot plot of films with odds in descending order */       
ods graphics / antialias height=4.5in width=8in;
proc sgplot data=bestpicturenominees sganno=filmimage;
dot film / response=probability categoryorder=respdesc markerattrs=(symbol=circlefilled size=10pt);
inset " " "2024" / position=top textattrs=(size=11pt weight=bold);
inset "BEST PICTURE NOMINEES" " " / position=bottom textattrs=(size=11pt weight=bold);
yaxistable probability / position=right nostatlabel label="Prob" valueattrs=(size=12pt) labelattrs=(size=12pt);
yaxistable odds / position=right nostatlabel label="Odds" valueattrs=(size=12pt) labelattrs=(size=12pt);
format probability percent6.1;
xaxis display=(nolabel)  valueattrs=(size=12pt) valuesformat=percent6.;
yaxis display=(nolabel) valueattrs=(size=12pt);
run;
%end;       
%mend;       

%films;                                      /* Run the macro to produce the animated GIF! */
options printerpath=gif animation=stop;
ods printer close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 09 Mar 2024 22:29:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-And-the-Academy-Award-for-Best-Picture/m-p/919665#M24436</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2024-03-09T22:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Fun With SAS ODS Graphics: And the Academy Award for Best Picture goes to?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-And-the-Academy-Award-for-Best-Picture/m-p/919721#M24441</link>
      <description>&lt;P&gt;Update&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OppenheimerOscars.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94548iF8F856E082479D29/image-size/medium?v=v2&amp;amp;px=400" role="button" title="OppenheimerOscars.jpg" alt="OppenheimerOscars.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 04:05:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-And-the-Academy-Award-for-Best-Picture/m-p/919721#M24441</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2024-03-11T04:05:26Z</dc:date>
    </item>
  </channel>
</rss>

