<?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: Heart-of-Hearts Valentine in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Heart-of-Hearts-Valentine/m-p/719183#M21042</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Heart-of-Hearts Valentine" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54709i5AB9548242AD6730/image-size/large?v=v2&amp;amp;px=999" role="button" title="heartofhearts.png" alt="Heart-of-Hearts Valentine" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Heart-of-Hearts Valentine&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lifted some heart code from my &lt;A href="https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-MOM-Tattoo/td-p/358522" target="_self"&gt;"MOM tattoo"&lt;/A&gt;, tweaked the red, filled it with &lt;A href="https://thenounproject.com/search/?q=valentine+heart&amp;amp;i=1535750" target="_self"&gt;valentine icons from The Noun Project&lt;/A&gt;, and voila - Happy Valentine's Day!&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: Heart-of-Hearts Valentine (Polygon+Scatter+Series Plots)
  Love icon courtesy of resty_agnesia, thenounproject.com/search/?q=valentine+heart&amp;amp;i=1535750;

data Heart;                                                     * Generate data for plots;
do t = 0 to 2*constant("pi") by 0.01;                           * X/Y=Points for red heart polygon;
  r=sin(t)*sqrt(abs(cos(t)))/(sin(t)+7/5)-2*sin(t)+2;
  x = r*cos(t);        
  y = r*sin(t);
  id=1;
  output;
end;
x=.; y=.; id=.;
do r=-3 to 3 by .5;                                             * X2/Y2=Points for white heart icon markers;
  do l=-5.15 to 3 by .5;
    x2=r; y2=l; output;                                         
    x2=r+.25; y2=l+.25; output;                                 * Offset heart icon markers from previous line;
  end;  
end;

ods graphics / reset antialias width=5in height=5in ;
proc sgplot data=Heart aspect=1 noborder noautolegend;          * Generate valentine (polygon+scatter+series plots);
title c=cxDC362D height=20pt "Happy Valentine's Day!";
symbolimage name=heart image='/folders/myfolders/WhiteValentineIcon.png'; 
polygon x=x y=y id=id / fill fillattrs=(color=cxDC362D);              * Red heart polygon plot; 
scatter x=x2 y=y2 / markerattrs=(color=white symbol=heart size=16pt); * White heart icon markers scatter plot;
series x=x y=y / lineattrs=(color=cxDC362D thickness=1pt);            * Red border series plot;
xaxis display=none min=-2.5 max=2.5 offsetmax=.001 offsetmin=.001; 
yaxis display=none min=-4 max=1 offsetmax=.001 offsetmin=.001;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 14 Feb 2021 08:03:30 GMT</pubDate>
    <dc:creator>tc</dc:creator>
    <dc:date>2021-02-14T08:03:30Z</dc:date>
    <item>
      <title>Fun With SAS ODS Graphics: Heart-of-Hearts Valentine</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Heart-of-Hearts-Valentine/m-p/719183#M21042</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Heart-of-Hearts Valentine" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54709i5AB9548242AD6730/image-size/large?v=v2&amp;amp;px=999" role="button" title="heartofhearts.png" alt="Heart-of-Hearts Valentine" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Heart-of-Hearts Valentine&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lifted some heart code from my &lt;A href="https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-MOM-Tattoo/td-p/358522" target="_self"&gt;"MOM tattoo"&lt;/A&gt;, tweaked the red, filled it with &lt;A href="https://thenounproject.com/search/?q=valentine+heart&amp;amp;i=1535750" target="_self"&gt;valentine icons from The Noun Project&lt;/A&gt;, and voila - Happy Valentine's Day!&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: Heart-of-Hearts Valentine (Polygon+Scatter+Series Plots)
  Love icon courtesy of resty_agnesia, thenounproject.com/search/?q=valentine+heart&amp;amp;i=1535750;

data Heart;                                                     * Generate data for plots;
do t = 0 to 2*constant("pi") by 0.01;                           * X/Y=Points for red heart polygon;
  r=sin(t)*sqrt(abs(cos(t)))/(sin(t)+7/5)-2*sin(t)+2;
  x = r*cos(t);        
  y = r*sin(t);
  id=1;
  output;
end;
x=.; y=.; id=.;
do r=-3 to 3 by .5;                                             * X2/Y2=Points for white heart icon markers;
  do l=-5.15 to 3 by .5;
    x2=r; y2=l; output;                                         
    x2=r+.25; y2=l+.25; output;                                 * Offset heart icon markers from previous line;
  end;  
end;

ods graphics / reset antialias width=5in height=5in ;
proc sgplot data=Heart aspect=1 noborder noautolegend;          * Generate valentine (polygon+scatter+series plots);
title c=cxDC362D height=20pt "Happy Valentine's Day!";
symbolimage name=heart image='/folders/myfolders/WhiteValentineIcon.png'; 
polygon x=x y=y id=id / fill fillattrs=(color=cxDC362D);              * Red heart polygon plot; 
scatter x=x2 y=y2 / markerattrs=(color=white symbol=heart size=16pt); * White heart icon markers scatter plot;
series x=x y=y / lineattrs=(color=cxDC362D thickness=1pt);            * Red border series plot;
xaxis display=none min=-2.5 max=2.5 offsetmax=.001 offsetmin=.001; 
yaxis display=none min=-4 max=1 offsetmax=.001 offsetmin=.001;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 14 Feb 2021 08:03:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Heart-of-Hearts-Valentine/m-p/719183#M21042</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2021-02-14T08:03:30Z</dc:date>
    </item>
  </channel>
</rss>

