<?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: Friday the 13th Edition in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Friday-the-13th-Edition/m-p/588659#M18869</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FridayThe13th.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32454i73FD838FCE9CE479/image-size/large?v=v2&amp;amp;px=999" role="button" title="FridayThe13th.png" alt="FridayThe13th.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Over on Twitter, Robert Allison &lt;A href="https://twitter.com/RobertAllison__/status/1172466042230190082" target="_self"&gt;reminds us today's a special day&lt;/A&gt; with his chart of &lt;A href="http://robslink.com/SAS/democd42/friday13.htm" target="_self"&gt;13 Years of Friday the 13th!&lt;/A&gt; So, to commemorate the occasion, here's a quick SAS ODS Graphics take on the box office hauls of the films in the &lt;A href="https://en.wikipedia.org/wiki/Friday_the_13th_(franchise)" target="_self"&gt;Friday the 13th movie franchise&lt;/A&gt;, complete with a "slashed" (aka broken) y-axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SAS CODE&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*==&amp;gt; Fun w/SAS ODS Graphics: Friday the 13th Movie Franchise Box Office (excludes 2009 "reboot")
     Movie poster images from Google search, Box office figures from Wikipedia; 

%let datasymbols=;                             * Map movies to their corresponding thumbnail movie poster images;
%macro gensymbols;
%do p=1 %to 11; 
  symbolimage name=symP%sysfunc(putn(&amp;amp;p,z2))                  /* Offset cropped images so tops approximate height */
              image="/folders/myfolders/Friday13th/%sysfunc(putn(&amp;amp;p,z2)).jpg" / voffset=-.5;
  %let datasymbols=&amp;amp;datasymbols symP%sysfunc(putn(&amp;amp;p,z2));
%end; 
%mend;

data movies;                                   * Create SAS dataset from inline data;
infile datalines dlm="|" dsd;
input title : $50. released : yymmdd10. boxoffice;
format released yymmdd10. boxoffice dollar6.2;
year=year(released);
x+1;                                           * Used to link box movie info to movie poster images;
datalines;
Friday the 13th|1980-05-09|59.75
Friday the 13th Part 2|1981-04-30|21.72
Friday the 13th Part III|1982-08-13|36.69
Friday the 13th: The Final Chapter|1984-04-13|32.98
Friday the 13th: A New Beginning|1985-03-22|21.93
Friday the 13th Part VI: Jason Lives|1986-08-01|19.47
Friday the 13th Part VII: The New Blood|1988-05-13|19.17
Friday the 13th Part VIII: Jason Takes Manhattan|1989-07-28|14.34
Jason Goes to Hell: The Final Friday|1993-08-13|15.94
Jason X|2002-04-26|16.96
Freddy vs. Jason|2003-08-15|114.9
;
                         * Create composite vbar/scatter plot (use movie poster images as markers);
ods listing gpath='/folders/myfolders';
ods graphics on / reset antialias width=10in height=8in attrpriority=none imagename="FridayThe13th";
proc sgplot data=Movies noborder noautolegend;
%gensymbols;
styleattrs datasymbols=(&amp;amp;datasymbols);
vbarbasic year / barwidth=.5 response=boxoffice nooutline fillattrs=(color=red) fill datalabel;
scatter x=year y=boxoffice /  group=x markerattrs=(size=75pt);
inset "Box Office (Millions)" / title=" Friday the 13th Movie Franchise " textattrs=(size=20pt) titleattrs=(size=26pt) position=top valuealign=center;
xaxis display=(nolabel noticks noline) type=discrete offsetmin=.05 offsetmax=.05; * "Slash" the y-axis (broken-axs);
yaxis display=(nolabel noticks) offsetmin=.001 offsetmax=.001 ranges=(0-62 100-117) grid tickvalueformat=dollar4.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Sep 2019 20:12:16 GMT</pubDate>
    <dc:creator>tc</dc:creator>
    <dc:date>2019-09-13T20:12:16Z</dc:date>
    <item>
      <title>Fun with SAS ODS Graphics: Friday the 13th Edition</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Friday-the-13th-Edition/m-p/588659#M18869</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FridayThe13th.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32454i73FD838FCE9CE479/image-size/large?v=v2&amp;amp;px=999" role="button" title="FridayThe13th.png" alt="FridayThe13th.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Over on Twitter, Robert Allison &lt;A href="https://twitter.com/RobertAllison__/status/1172466042230190082" target="_self"&gt;reminds us today's a special day&lt;/A&gt; with his chart of &lt;A href="http://robslink.com/SAS/democd42/friday13.htm" target="_self"&gt;13 Years of Friday the 13th!&lt;/A&gt; So, to commemorate the occasion, here's a quick SAS ODS Graphics take on the box office hauls of the films in the &lt;A href="https://en.wikipedia.org/wiki/Friday_the_13th_(franchise)" target="_self"&gt;Friday the 13th movie franchise&lt;/A&gt;, complete with a "slashed" (aka broken) y-axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SAS CODE&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*==&amp;gt; Fun w/SAS ODS Graphics: Friday the 13th Movie Franchise Box Office (excludes 2009 "reboot")
     Movie poster images from Google search, Box office figures from Wikipedia; 

%let datasymbols=;                             * Map movies to their corresponding thumbnail movie poster images;
%macro gensymbols;
%do p=1 %to 11; 
  symbolimage name=symP%sysfunc(putn(&amp;amp;p,z2))                  /* Offset cropped images so tops approximate height */
              image="/folders/myfolders/Friday13th/%sysfunc(putn(&amp;amp;p,z2)).jpg" / voffset=-.5;
  %let datasymbols=&amp;amp;datasymbols symP%sysfunc(putn(&amp;amp;p,z2));
%end; 
%mend;

data movies;                                   * Create SAS dataset from inline data;
infile datalines dlm="|" dsd;
input title : $50. released : yymmdd10. boxoffice;
format released yymmdd10. boxoffice dollar6.2;
year=year(released);
x+1;                                           * Used to link box movie info to movie poster images;
datalines;
Friday the 13th|1980-05-09|59.75
Friday the 13th Part 2|1981-04-30|21.72
Friday the 13th Part III|1982-08-13|36.69
Friday the 13th: The Final Chapter|1984-04-13|32.98
Friday the 13th: A New Beginning|1985-03-22|21.93
Friday the 13th Part VI: Jason Lives|1986-08-01|19.47
Friday the 13th Part VII: The New Blood|1988-05-13|19.17
Friday the 13th Part VIII: Jason Takes Manhattan|1989-07-28|14.34
Jason Goes to Hell: The Final Friday|1993-08-13|15.94
Jason X|2002-04-26|16.96
Freddy vs. Jason|2003-08-15|114.9
;
                         * Create composite vbar/scatter plot (use movie poster images as markers);
ods listing gpath='/folders/myfolders';
ods graphics on / reset antialias width=10in height=8in attrpriority=none imagename="FridayThe13th";
proc sgplot data=Movies noborder noautolegend;
%gensymbols;
styleattrs datasymbols=(&amp;amp;datasymbols);
vbarbasic year / barwidth=.5 response=boxoffice nooutline fillattrs=(color=red) fill datalabel;
scatter x=year y=boxoffice /  group=x markerattrs=(size=75pt);
inset "Box Office (Millions)" / title=" Friday the 13th Movie Franchise " textattrs=(size=20pt) titleattrs=(size=26pt) position=top valuealign=center;
xaxis display=(nolabel noticks noline) type=discrete offsetmin=.05 offsetmax=.05; * "Slash" the y-axis (broken-axs);
yaxis display=(nolabel noticks) offsetmin=.001 offsetmax=.001 ranges=(0-62 100-117) grid tickvalueformat=dollar4.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 20:12:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Friday-the-13th-Edition/m-p/588659#M18869</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2019-09-13T20:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Fun with SAS ODS Graphics: Friday the 13th Edition</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Friday-the-13th-Edition/m-p/588664#M18870</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="giphy.gif" style="width: 493px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32455i0FFF6368F7098CAD/image-size/large?v=v2&amp;amp;px=999" role="button" title="giphy.gif" alt="giphy.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 21:35:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Friday-the-13th-Edition/m-p/588664#M18870</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-09-13T21:35:06Z</dc:date>
    </item>
  </channel>
</rss>

