<?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: Paranormal Density Plot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Paranormal-Density-Plot/m-p/599968#M19030</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ParanormalDensityPlot.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33454i303BDAC173AA0B43/image-size/large?v=v2&amp;amp;px=999" role="button" title="ParanormalDensityPlot.png" alt="ParanormalDensityPlot.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the help of code snipped from Stephen Mistler's 2014 &lt;A href="https://blogs.sas.com/content/sastraining/2014/06/10/producing-normal-density-plots-with-shading" target="_self"&gt;Producing Normal Density Plots With Shading&lt;/A&gt;, here's a quick SAS ODS Graphics takeoff on Andrew Heiss's 2018 R/ggplot &lt;A href="https://twitter.com/andrewheiss/status/1057682358135021568" target="_self"&gt;Paranormal Distribution&lt;/A&gt;. Happy Halloween, all!&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Btw, it's probably worth mentioning that if you need a density plot - but don't need to make it look like a crudely-drawn Halloween ghost costume - SAS ODS Graphics' &lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p0o7d7xxvzs9qmn1vctlufpz1448.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n1mf6h1p523enin13tjqsi5y9xf1" target="_self"&gt;DENSITY statement&lt;/A&gt; makes things a breeze!&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;* Fun w/SAS ODS Graphics: "Para-Normal" Density Plot
  See Stephen Mistler's Producing Normal Density Plots With Shading at blogs.sas.com/content/sastraining/2014/06/10/producing-normal-density-plots-with-shading
  and Andrew Heiss's R/ggplot Paranormal Distribution at https://twitter.com/andrewheiss/status/1057682358135021568;
  
data pdf;                       * Points for density plot;
retain lower 0;                 * Used to create area plot;
do X=-5 to 5 by .001;           * Generate points to plot;
  PDF=pdf("Normal", x, 0, 1.5); * SAS probability distribution function (normal);
  output;
end;

data EyesMouth;                 * Points for eyes/mouth of "ghost";
circle=unicode('\u25CF');       * Unicode filled circle for eyes/mouth;
input x2 y2 size;               * Coordinates/sizes for eyes/mouth (eyes smaller than mouth);
cards;
-.55  .2 1 Left Eye
 .55  .2 1 Right Eye
   0 .15 3 Mouth
;
data Ghost;                      * Merge data together to create our "ghost";
set pdf EyesMouth;
                                 * Plot the "ghost";
ods graphics / ANTIALIASMAX=10100; * Band plot (density curve) + text plot (eyes/mouth);                              
proc sgplot data=ghost noautolegend nowall noborder;
title height=18pt "PARANORMAL DENSITY PLOT";
styleattrs backcolor=orange;     * Pumpkin-ish color;
band x=x lower=lower upper=pdf / fillattrs=(color=white); * Ghost body is band plot (shaded normal density plot);
text x=x2 y=y2 text=circle / textattrs=(family="Arial Unicode MS") /* Plot ghost eyes/mouth (circles) */
                              sizemin=32pt sizemax=96pt sizeresponse=size;
xaxis display=(nolabel noline noticks) grid gridattrs=(color=white) valueattrs=(color=white); * Use white grid lines, suppress axis line;
yaxis display=(nolabel noline noticks) grid gridattrs=(color=white) valueattrs=(color=white) min=0 offsetmin=.01 offsetmax=.01;
inset "HAPPY HALLOWEEN!" / position=bottom textattrs=(size=14pt weight=bold); * Halloween greeting at bottom;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2019 02:49:58 GMT</pubDate>
    <dc:creator>tc</dc:creator>
    <dc:date>2019-10-29T02:49:58Z</dc:date>
    <item>
      <title>Fun with SAS ODS Graphics: Paranormal Density Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Paranormal-Density-Plot/m-p/599968#M19030</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ParanormalDensityPlot.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33454i303BDAC173AA0B43/image-size/large?v=v2&amp;amp;px=999" role="button" title="ParanormalDensityPlot.png" alt="ParanormalDensityPlot.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the help of code snipped from Stephen Mistler's 2014 &lt;A href="https://blogs.sas.com/content/sastraining/2014/06/10/producing-normal-density-plots-with-shading" target="_self"&gt;Producing Normal Density Plots With Shading&lt;/A&gt;, here's a quick SAS ODS Graphics takeoff on Andrew Heiss's 2018 R/ggplot &lt;A href="https://twitter.com/andrewheiss/status/1057682358135021568" target="_self"&gt;Paranormal Distribution&lt;/A&gt;. Happy Halloween, all!&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Btw, it's probably worth mentioning that if you need a density plot - but don't need to make it look like a crudely-drawn Halloween ghost costume - SAS ODS Graphics' &lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p0o7d7xxvzs9qmn1vctlufpz1448.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n1mf6h1p523enin13tjqsi5y9xf1" target="_self"&gt;DENSITY statement&lt;/A&gt; makes things a breeze!&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;* Fun w/SAS ODS Graphics: "Para-Normal" Density Plot
  See Stephen Mistler's Producing Normal Density Plots With Shading at blogs.sas.com/content/sastraining/2014/06/10/producing-normal-density-plots-with-shading
  and Andrew Heiss's R/ggplot Paranormal Distribution at https://twitter.com/andrewheiss/status/1057682358135021568;
  
data pdf;                       * Points for density plot;
retain lower 0;                 * Used to create area plot;
do X=-5 to 5 by .001;           * Generate points to plot;
  PDF=pdf("Normal", x, 0, 1.5); * SAS probability distribution function (normal);
  output;
end;

data EyesMouth;                 * Points for eyes/mouth of "ghost";
circle=unicode('\u25CF');       * Unicode filled circle for eyes/mouth;
input x2 y2 size;               * Coordinates/sizes for eyes/mouth (eyes smaller than mouth);
cards;
-.55  .2 1 Left Eye
 .55  .2 1 Right Eye
   0 .15 3 Mouth
;
data Ghost;                      * Merge data together to create our "ghost";
set pdf EyesMouth;
                                 * Plot the "ghost";
ods graphics / ANTIALIASMAX=10100; * Band plot (density curve) + text plot (eyes/mouth);                              
proc sgplot data=ghost noautolegend nowall noborder;
title height=18pt "PARANORMAL DENSITY PLOT";
styleattrs backcolor=orange;     * Pumpkin-ish color;
band x=x lower=lower upper=pdf / fillattrs=(color=white); * Ghost body is band plot (shaded normal density plot);
text x=x2 y=y2 text=circle / textattrs=(family="Arial Unicode MS") /* Plot ghost eyes/mouth (circles) */
                              sizemin=32pt sizemax=96pt sizeresponse=size;
xaxis display=(nolabel noline noticks) grid gridattrs=(color=white) valueattrs=(color=white); * Use white grid lines, suppress axis line;
yaxis display=(nolabel noline noticks) grid gridattrs=(color=white) valueattrs=(color=white) min=0 offsetmin=.01 offsetmax=.01;
inset "HAPPY HALLOWEEN!" / position=bottom textattrs=(size=14pt weight=bold); * Halloween greeting at bottom;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 02:49:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Paranormal-Density-Plot/m-p/599968#M19030</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2019-10-29T02:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Fun with SAS ODS Graphics: Paranormal Density Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Paranormal-Density-Plot/m-p/599974#M19031</link>
      <description>&lt;P&gt;What a ghoulish and great graph! Clever use of unicode characters as text for the eyes &amp;amp; mouth.&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 04:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Paranormal-Density-Plot/m-p/599974#M19031</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2019-10-29T04:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Fun with SAS ODS Graphics: Paranormal Density Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Paranormal-Density-Plot/m-p/600458#M19033</link>
      <description>&lt;P&gt;&lt;A href="https://twitter.com/ProcStream/status/1189503474221899776" target="_self"&gt;Twitter user&amp;nbsp;ProcStream&lt;/A&gt; ("PROC SPPooky" for the season) shared this variation.&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="cc.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33481i1655876617973040/image-size/large?v=v2&amp;amp;px=999" role="button" title="cc.jpg" alt="cc.jpg" /&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="EIH3GmnXYAMtwAF.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33482i0192DB38701EC111/image-size/large?v=v2&amp;amp;px=999" role="button" title="EIH3GmnXYAMtwAF.jpg" alt="EIH3GmnXYAMtwAF.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 17:03:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Paranormal-Density-Plot/m-p/600458#M19033</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-10-30T17:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Fun with SAS ODS Graphics: Paranormal Density Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Paranormal-Density-Plot/m-p/607745#M19160</link>
      <description>&lt;P&gt;I guess it doesn't work with Linux.&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="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34285i52D7603DE55E2BD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 15:45:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Paranormal-Density-Plot/m-p/607745#M19160</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2019-11-27T15:45:39Z</dc:date>
    </item>
  </channel>
</rss>

