<?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: (Polar) Flowers for Mother's Day in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Polar-Flowers-for-Mother-s-Day/m-p/646541#M19854</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS Polar Flower" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39252iEE762139E16EC3DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mom.png" alt="SAS Polar Flower" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;SAS Polar Flower&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Craft Project for Kids" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39253iBFA07E4E6FAA3E35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mom-Flower-Template.jpg" alt="Craft Project for Kids" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Craft Project for Kids&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What do you get when you cross &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;'s&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2015/12/16/polar-rose.html" target="_self"&gt;Polar Rose code&lt;/A&gt; with &lt;A href="https://www.thebestideasforkids.com/flower-template/" target="_self"&gt;kids' crafts&lt;/A&gt;? Polar flowers for Mother's Day!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun With SAS ODS Graphics: Mother's Day Polar Flower
  References: blogs.sas.com/content/iml/2015/12/16/polar-rose.html
              matrixlab-examples.com/polar-plots.html
              thebestideasforkids.com/flower-template;

data flower;                               /* Generate points for "flower" */
id=1;
do theta = 0 to 2*constant("pi") by 0.01;
  r = sqrt(abs(sin(3*theta)));             /* Six-petaled "flower" */  
  x = r*cos(theta);                        /* Convert to x/y */
  y = r*sin(theta);
  output;
end;
x=.; y=.; x2=0; y2=0; mom='MOM'; output;   /* Generate "pistil" */
                                           /* Polygon/scatter/text plots */
proc sgplot data=flower aspect=1 noborder noautolegend;
polygon x=x y=y id=id / fill fillattrs=(color=cxb19cd9);
scatter x=x2 y=y2 / markerattrs=(symbol=circlefilled color=cxfadadd size=90pt);
text x=x2 y=y2 text=mom / textattrs=(color=white size=28pt color=purple);
xaxis display=none min=-1 max=1 offsetmin=0 offsetmax=0;
yaxis display=none min=-1 max=1 offsetmin=0 offsetmax=0;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 10 May 2020 18:12:04 GMT</pubDate>
    <dc:creator>tc</dc:creator>
    <dc:date>2020-05-10T18:12:04Z</dc:date>
    <item>
      <title>Fun With SAS ODS Graphics: (Polar) Flowers for Mother's Day</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Polar-Flowers-for-Mother-s-Day/m-p/646541#M19854</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS Polar Flower" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39252iEE762139E16EC3DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mom.png" alt="SAS Polar Flower" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;SAS Polar Flower&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Craft Project for Kids" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39253iBFA07E4E6FAA3E35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mom-Flower-Template.jpg" alt="Craft Project for Kids" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Craft Project for Kids&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What do you get when you cross &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;'s&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2015/12/16/polar-rose.html" target="_self"&gt;Polar Rose code&lt;/A&gt; with &lt;A href="https://www.thebestideasforkids.com/flower-template/" target="_self"&gt;kids' crafts&lt;/A&gt;? Polar flowers for Mother's Day!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun With SAS ODS Graphics: Mother's Day Polar Flower
  References: blogs.sas.com/content/iml/2015/12/16/polar-rose.html
              matrixlab-examples.com/polar-plots.html
              thebestideasforkids.com/flower-template;

data flower;                               /* Generate points for "flower" */
id=1;
do theta = 0 to 2*constant("pi") by 0.01;
  r = sqrt(abs(sin(3*theta)));             /* Six-petaled "flower" */  
  x = r*cos(theta);                        /* Convert to x/y */
  y = r*sin(theta);
  output;
end;
x=.; y=.; x2=0; y2=0; mom='MOM'; output;   /* Generate "pistil" */
                                           /* Polygon/scatter/text plots */
proc sgplot data=flower aspect=1 noborder noautolegend;
polygon x=x y=y id=id / fill fillattrs=(color=cxb19cd9);
scatter x=x2 y=y2 / markerattrs=(symbol=circlefilled color=cxfadadd size=90pt);
text x=x2 y=y2 text=mom / textattrs=(color=white size=28pt color=purple);
xaxis display=none min=-1 max=1 offsetmin=0 offsetmax=0;
yaxis display=none min=-1 max=1 offsetmin=0 offsetmax=0;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 10 May 2020 18:12:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Polar-Flowers-for-Mother-s-Day/m-p/646541#M19854</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2020-05-10T18:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fun With SAS ODS Graphics: (Polar) Flowers for Mother's Day</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Polar-Flowers-for-Mother-s-Day/m-p/646557#M19855</link>
      <description>&lt;P&gt;Nice work TC.&amp;nbsp; I wonder if the same can be done using the ELLIPSEPARM statement(s).&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 22:04:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Polar-Flowers-for-Mother-s-Day/m-p/646557#M19855</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2020-05-10T22:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Fun With SAS ODS Graphics: (Polar) Flowers for Mother's Day</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Polar-Flowers-for-Mother-s-Day/m-p/646569#M19856</link>
      <description>&lt;P&gt;You know, I forgot there was an ELLIPSEPARM statement for PROC SGPLOT! Gave it a quick shot, and it worked fine for generating a circle to replace the SCATTER plot, but I couldn't get a good shape for the petals. Also, I found that tweaking the equation for the petals yielded a more pleasing (to me at least!) shape for the petals:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Take 2!" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39257iE02547A41601BF6E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mom2.png" alt="Take 2!" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Take 2!&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;* Fun With SAS ODS Graphics: Mother's Day Polar Flower
  References: blogs.sas.com/content/iml/2015/12/16/polar-rose.html
              matrixlab-examples.com/polar-plots.html
              thebestideasforkids.com/flower-template;

data flower;                               /* Generate points for "flower" */
id=1;
do theta = 0 to 2*constant("pi") by 0.01;
  r = abs(sin(3*theta))**(1/4);            /* Six-petaled "flower" */  
  x = r*cos(theta);                        /* Convert to x/y */
  y = r*sin(theta);
  output;
end;
x=.; y=.; x2=0; y2=0; mom='MOM'; output;   /* Generate "pistil" */
                                           /* Polygon/ellipse/text plots */
proc sgplot data=flower aspect=1 noborder noautolegend;
polygon x=x y=y id=id / fill fillattrs=(color=cxb19cd9);
ellipseparm semimajor=.35 semiminor=.35 / xorigin=0 yorigin=0 fillattrs=(color=cxfadadd) nooutline;   
text x=x2 y=y2 text=mom / textattrs=(color=white size=28pt color=purple);
xaxis display=none min=-1 max=1 offsetmin=0 offsetmax=0;
yaxis display=none min=-1 max=1 offsetmin=0 offsetmax=0;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 May 2020 02:43:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Polar-Flowers-for-Mother-s-Day/m-p/646569#M19856</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2020-05-11T02:43:08Z</dc:date>
    </item>
  </channel>
</rss>

