<?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: smooth function of wind direction &amp;amp; wind speed on BC concentration in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/281581#M9972</link>
    <description>&lt;P&gt;thank you! I haven't tried it out with my data, but think it will work-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jun 2016 22:54:13 GMT</pubDate>
    <dc:creator>imsenny</dc:creator>
    <dc:date>2016-06-30T22:54:13Z</dc:date>
    <item>
      <title>smooth function of wind direction &amp; wind speed on BC concentration</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/280836#M9963</link>
      <description>&lt;P&gt;I want to make a graph showing the effect of both wind speed and wind direction on black carbon concentration - so basically x axis = wind speed y axis = wind direction, and the more red the higher BC concentration etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I can use proc gam or proc loess.. but not to sure how to code it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 16:41:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/280836#M9963</guid>
      <dc:creator>imsenny</dc:creator>
      <dc:date>2016-06-28T16:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: smooth function of wind direction &amp; wind speed on BC concentration</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/280841#M9964</link>
      <description>&lt;P&gt;In PROC SPLOT you can just use a LOESS statement or a PBSPLINE statement to overlay a nonparametric curve on a scatter plot. &amp;nbsp;(You can also use the REG statement for a parametric curve.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.enso;
pbspline x=year y=pressure;           /* also draws scatter plot */
loess x=year y=pressure / nomarkers;  /* uses PRESEARCH option */
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For more control, you can use SAS procedures. See the article &lt;A href="http://blogs.sas.com/content/iml/2014/02/26/how-to-automatically-select-a-smooth-curve-for-a-scatter-plot-in-sas.html" target="_self"&gt;"How to automatically select a smooth curve for a scatter plot in SAS."&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 16:59:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/280841#M9964</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-06-28T16:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: smooth function of wind direction &amp; wind speed on BC concentration</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/280843#M9965</link>
      <description>&lt;P&gt;When the real data contains geographical elements like direction, or the data is cyclical, a polar graph can be very useful.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2012/04/09/simpler-is-better/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2012/04/09/simpler-is-better/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 17:03:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/280843#M9965</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-06-28T17:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: smooth function of wind direction &amp; wind speed on BC concentration</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/280861#M9966</link>
      <description>&lt;P&gt;Ideally you would want a radar chart where angle represents wind direction, radius represents wind speed, and color represents geometric mean black carbon concentration. &amp;nbsp;That would be nice!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anybody up to the challenge?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 17:46:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/280861#M9966</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-06-28T17:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: smooth function of wind direction &amp; wind speed on BC concentration</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/280867#M9967</link>
      <description>&lt;P&gt;Yes that's exactly what I want actually.. Something like polarplot in R...&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 18:05:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/280867#M9967</guid>
      <dc:creator>imsenny</dc:creator>
      <dc:date>2016-06-28T18:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: smooth function of wind direction &amp; wind speed on BC concentration</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/280877#M9968</link>
      <description>&lt;P&gt;If you can include some sample data with the appropriate columns and a picture of what you are looking for, you may elicit some suggestions.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 19:03:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/280877#M9968</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-06-28T19:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: smooth function of wind direction &amp; wind speed on BC concentration</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/281139#M9969</link>
      <description>&lt;P&gt;Columns would include - BC concentration, wind speed, and wind direction OR BC concentration, wind direction, and altitude etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So different colors will show BC conc, and x-axis wind direction, and y-axis wind speed...&lt;/P&gt;&lt;P&gt;Can SAS do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 15:29:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/281139#M9969</guid>
      <dc:creator>imsenny</dc:creator>
      <dc:date>2016-06-29T15:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: smooth function of wind direction &amp; wind speed on BC concentration</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/281292#M9970</link>
      <description>&lt;P&gt;What you are showing is a simple rectangular heat map by speed and direction. &amp;nbsp;This can be done using SAS 9.40M3 SGPLOT HEATMAP or HEATMAPPARM. &amp;nbsp;I used SASHELP.HEART to do an example, changed the axes. &amp;nbsp;It would be more intuitive&amp;nbsp;if the direction was circular.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3844i097122FB278288D2/image-size/medium?v=v2&amp;amp;px=-1" border="0" alt="Heat_Map_SG.png" title="Heat_Map_SG.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let gpath='.';
%let dpi=150;
ods html close;
ods listing image_dpi=&amp;amp;dpi gpath=&amp;amp;gpath;

/*--Replicate data &amp;gt; 1Million obs--*/
data heart;
  set sashelp.heart(keep=systolic diastolic cholesterol);
  output;
  do i=1 to 200;
    systolic=systolic*(1+0.05*(ranuni(2)-0.5));
    diastolic=diastolic*(1+0.05*(ranuni(2)-0.5));
    cholesterol=cholesterol*(1+0.05*(ranuni(2)-0.5));
    output;
  end;
run;

title 'BC Concentration by Wind Speed and Direction';
proc sgplot data=heart(where=(systolic &amp;lt; 250 and diastolic &amp;lt; 150));
  heatmap x=systolic y=diastolic / colorresponse=cholesterol 
          colorstat=mean colormodel=(white green yellow red)
          nxbins=100 nybins=60 name='a';
  gradlegend 'a' / title=''; 
  xaxis  display=(novalues noticks) min=100 max=200 label='Wind Direction';
  yaxis  display=(novalues noticks) min=50 max=125 label='Wind Speed';
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jun 2016 21:29:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/281292#M9970</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-06-29T21:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: smooth function of wind direction &amp; wind speed on BC concentration</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/281581#M9972</link>
      <description>&lt;P&gt;thank you! I haven't tried it out with my data, but think it will work-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 22:54:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/281581#M9972</guid>
      <dc:creator>imsenny</dc:creator>
      <dc:date>2016-06-30T22:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: smooth function of wind direction &amp; wind speed on BC concentration</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/281875#M9994</link>
      <description>&lt;P&gt;Here is a more intuitive visual for directional data.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2016/07/02/polar-graph/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2016/07/02/polar-graph/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jul 2016 02:36:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/smooth-function-of-wind-direction-amp-wind-speed-on-BC/m-p/281875#M9994</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-07-03T02:36:40Z</dc:date>
    </item>
  </channel>
</rss>

