<?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 Re: SAS Graphs 3D in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphs-3D/m-p/238998#M8682</link>
    <description>&lt;P&gt;If you are interested in polar equations (2D), that is easily done. For example, the following create a &lt;A href="https://en.wikipedia.org/wiki/Rose_%28mathematics%29" target="_self"&gt;"polar rose":&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let k = 5;
data Rose;
do theta = 0 to 2*constant("pi") by 0.01;
   r = cos(&amp;amp;k * theta);
   x = r*cos(theta);
   y = r*sin(theta);
   output;
end;
run;

title "Polar Rose: r = cos(&amp;amp;k theta)";
proc sgplot data=Rose aspect=1;
series x=x y=y;
refline 0 / axis=x;
xaxis min=-1 max=1;
refline 0 / axis=y;
yaxis min=-1 max=1;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 11 Dec 2015 21:14:07 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2015-12-11T21:14:07Z</dc:date>
    <item>
      <title>SAS Graphs 3D</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphs-3D/m-p/238649#M8661</link>
      <description>&lt;P&gt;How to plot the below equations in SAS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x=r*sin(theta)*cos(theta1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;y=r*sin(theta)*sin(theta1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;z=r*cos(theta)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Help needed.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 09:46:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphs-3D/m-p/238649#M8661</guid>
      <dc:creator>KafeelBasha</dc:creator>
      <dc:date>2015-12-10T09:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Graphs 3D</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphs-3D/m-p/238715#M8663</link>
      <description>&lt;P&gt;Spherical coordinate are an alternate coordinate system in which points in 3D space are represented by a distance from the origin, a polar angle, and an azimuthal angle.&amp;nbsp; This coordinate system is used for radially symmetric problems in physics and geometry. In SAS, it arises naturally when you want to plot maps. For maps, the radius of the earth is assumed to be constant, and there are many many &lt;A href="http://support.sas.com/documentation/cdl/en/graphref/65389/HTML/default/viewer.htm#p0bk91yvdq77lbn1ihcsq30tewn5.htm" target="_self"&gt;projections &lt;/A&gt;that you can use to visualize the surface of the earth in the flat plane of the screen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For a fixed radius, r, your equations form a sphere of radius r.&amp;nbsp; You could draw a 3D scatter plot of the image of a dense grid of (theta1, theta) values to see what it looks like, but since all spheres look like spheres there really isn't much point in graphing it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you tell us your application, we might be able to provide more information. Do you have 3D data that you are trying to model? Are you trying to estimate the radius of "best fit" for a set of data points? Are you trying to visualize 3D data?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 15:54:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphs-3D/m-p/238715#M8663</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-12-10T15:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Graphs 3D</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphs-3D/m-p/238845#M8670</link>
      <description>&lt;P&gt;Thanks for your kind reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have any data, was thinking how could we plot polar equations in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 05:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphs-3D/m-p/238845#M8670</guid>
      <dc:creator>KafeelBasha</dc:creator>
      <dc:date>2015-12-11T05:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Graphs 3D</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphs-3D/m-p/238998#M8682</link>
      <description>&lt;P&gt;If you are interested in polar equations (2D), that is easily done. For example, the following create a &lt;A href="https://en.wikipedia.org/wiki/Rose_%28mathematics%29" target="_self"&gt;"polar rose":&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let k = 5;
data Rose;
do theta = 0 to 2*constant("pi") by 0.01;
   r = cos(&amp;amp;k * theta);
   x = r*cos(theta);
   y = r*sin(theta);
   output;
end;
run;

title "Polar Rose: r = cos(&amp;amp;k theta)";
proc sgplot data=Rose aspect=1;
series x=x y=y;
refline 0 / axis=x;
xaxis min=-1 max=1;
refline 0 / axis=y;
yaxis min=-1 max=1;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Dec 2015 21:14:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphs-3D/m-p/238998#M8682</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-12-11T21:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Graphs 3D</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphs-3D/m-p/239543#M8712</link>
      <description>&lt;P&gt;I wrote a blog post on the subject of polar roses: &lt;A href="http://blogs.sas.com/content/iml/2015/12/16/polar-rose.html" target="_self"&gt;"Lo, how a polar rose e'er blooming."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 15:30:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphs-3D/m-p/239543#M8712</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-12-16T15:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Graphs 3D</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphs-3D/m-p/239595#M8715</link>
      <description>&lt;P&gt;Earlier in the year, I wrote an article on creating 3D graphs using SAS 9.4 SGPLOT. &amp;nbsp;This includes a macro that can handle a simple 3D scatterplot, and a way to animate it. &amp;nbsp;You might find some useful ideas here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2015/03/10/a-3d-scatter-plot-macro/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2015/03/10/a-3d-scatter-plot-macro/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2015/03/16/a-3d-scatter-plot-animation-macro/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2015/03/16/a-3d-scatter-plot-animation-macro/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 18:46:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphs-3D/m-p/239595#M8715</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2015-12-16T18:46:02Z</dc:date>
    </item>
  </channel>
</rss>

