<?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 Valentine's Day 2021 in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Valentine-s-Day-2021/m-p/718707#M21035</link>
    <description>&lt;P&gt;Well not as good as polar rose valentines inspired by Rick Wicklin&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/Challenge-for-SAS-Nerds-Build-a-SAS-Valentine/m-p/535956#M17806" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/Graphics-Programming/Challenge-for-SAS-Nerds-Build-a-SAS-Valentine/m-p/535956#M17806&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was short on time given given the pandemic, but if you want something cute:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mix_valentine.png" style="width: 384px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54611i712FED1ADC024A4E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mix_valentine.png" alt="mix_valentine.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="outlier_valentine.png" style="width: 576px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54613i4B2CDA818E3CB895/image-size/large?v=v2&amp;amp;px=999" role="button" title="outlier_valentine.png" alt="outlier_valentine.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="skewed_valentine.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54612iD06E487FEDD8D106/image-size/medium?v=v2&amp;amp;px=400" role="button" title="skewed_valentine.png" alt="skewed_valentine.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Laura Kapitula's geeky valentines 2021";

/* simulate */
ods graphics/ height=3in;
title height=2 color=black "Valentine, let's mix our distributions.";
data sim;

do i= 1 to 10000;
  p=rand('bernoulli',.5); 
  if p=1 then do;
     person = 'you';
       x=rand('chisq',10)+4;
  end;
  else if p=0 then do;
       person='me ';
	  x= rand('normal',3,4);
  end; 
  output;
end;
run;

proc sgplot data=sim;
  histogram x/ group=person  transparency=.5  ;
    keylegend / location=inside down=3 noborder position=topright fillheight=20 title=" ";
  density x / group=person type=kernel ;
  xaxis display=none;

run;


data sim2;
  do i= 1 to 100;
    x=rand('normal', 100,20);
    if 47&amp;lt;x&amp;lt;155 then output;
  end;
  x=170; label='you'; output;
run;

ods graphics / width=6in height=1.5in;
title height=2 color=black "Valentine, you are a positive outlier.";
proc sgplot data=sim2 noborder;
  hbox x / datalabel=label  fillattrs=(color=pink) lineattrs=(color=red thickness=2) whiskerattrs=(color=red thickness=2) 
outlierattrs=(size=30 symbol=heartfilled color=red  ) medianattrs=(color=red thickness=2) meanattrs=(color=red)
datalabelattrs=(weight=bold color=crimson size=12)  boxwidth=1   ; 
  xaxis display=none;
run;

ods graphics/ height=3in;
title height=2 color=black "Valentine, I love that you are positively skewed.";
data sim3;

do i= 1 to 10000;
      person = 'you';
       x=rand('gamma',2,2);
    output;
end;
run;

proc sgplot data=sim3 noautolegend;
  histogram x/  fillattrs=(color=pink) nooutline   ;
  density x / type=kernel lineattrs=(color=red thickness=2) ;
  xaxis display=none;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 11 Feb 2021 19:14:28 GMT</pubDate>
    <dc:creator>LauraRK</dc:creator>
    <dc:date>2021-02-11T19:14:28Z</dc:date>
    <item>
      <title>Valentine's Day 2021</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Valentine-s-Day-2021/m-p/718707#M21035</link>
      <description>&lt;P&gt;Well not as good as polar rose valentines inspired by Rick Wicklin&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/Challenge-for-SAS-Nerds-Build-a-SAS-Valentine/m-p/535956#M17806" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/Graphics-Programming/Challenge-for-SAS-Nerds-Build-a-SAS-Valentine/m-p/535956#M17806&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was short on time given given the pandemic, but if you want something cute:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mix_valentine.png" style="width: 384px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54611i712FED1ADC024A4E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mix_valentine.png" alt="mix_valentine.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="outlier_valentine.png" style="width: 576px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54613i4B2CDA818E3CB895/image-size/large?v=v2&amp;amp;px=999" role="button" title="outlier_valentine.png" alt="outlier_valentine.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="skewed_valentine.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54612iD06E487FEDD8D106/image-size/medium?v=v2&amp;amp;px=400" role="button" title="skewed_valentine.png" alt="skewed_valentine.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Laura Kapitula's geeky valentines 2021";

/* simulate */
ods graphics/ height=3in;
title height=2 color=black "Valentine, let's mix our distributions.";
data sim;

do i= 1 to 10000;
  p=rand('bernoulli',.5); 
  if p=1 then do;
     person = 'you';
       x=rand('chisq',10)+4;
  end;
  else if p=0 then do;
       person='me ';
	  x= rand('normal',3,4);
  end; 
  output;
end;
run;

proc sgplot data=sim;
  histogram x/ group=person  transparency=.5  ;
    keylegend / location=inside down=3 noborder position=topright fillheight=20 title=" ";
  density x / group=person type=kernel ;
  xaxis display=none;

run;


data sim2;
  do i= 1 to 100;
    x=rand('normal', 100,20);
    if 47&amp;lt;x&amp;lt;155 then output;
  end;
  x=170; label='you'; output;
run;

ods graphics / width=6in height=1.5in;
title height=2 color=black "Valentine, you are a positive outlier.";
proc sgplot data=sim2 noborder;
  hbox x / datalabel=label  fillattrs=(color=pink) lineattrs=(color=red thickness=2) whiskerattrs=(color=red thickness=2) 
outlierattrs=(size=30 symbol=heartfilled color=red  ) medianattrs=(color=red thickness=2) meanattrs=(color=red)
datalabelattrs=(weight=bold color=crimson size=12)  boxwidth=1   ; 
  xaxis display=none;
run;

ods graphics/ height=3in;
title height=2 color=black "Valentine, I love that you are positively skewed.";
data sim3;

do i= 1 to 10000;
      person = 'you';
       x=rand('gamma',2,2);
    output;
end;
run;

proc sgplot data=sim3 noautolegend;
  histogram x/  fillattrs=(color=pink) nooutline   ;
  density x / type=kernel lineattrs=(color=red thickness=2) ;
  xaxis display=none;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Feb 2021 19:14:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Valentine-s-Day-2021/m-p/718707#M21035</guid>
      <dc:creator>LauraRK</dc:creator>
      <dc:date>2021-02-11T19:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Valentine's Day 2021</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Valentine-s-Day-2021/m-p/718712#M21036</link>
      <description>&lt;P&gt;Awesome graph Laura! This has really inspired me! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I really like the let's mix our distribution graph!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 19:20:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Valentine-s-Day-2021/m-p/718712#M21036</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2021-02-11T19:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Valentine's Day 2021</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Valentine-s-Day-2021/m-p/718734#M21037</link>
      <description>that is my favorite of these as well. My real favorite is the animated polar roses, but I like these for their simplicity. Lot's of fun with SGPLOT .</description>
      <pubDate>Thu, 11 Feb 2021 20:13:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Valentine-s-Day-2021/m-p/718734#M21037</guid>
      <dc:creator>LauraRK</dc:creator>
      <dc:date>2021-02-11T20:13:52Z</dc:date>
    </item>
  </channel>
</rss>

