<?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: SGPLOT and Shading of Forecast Area in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-and-Shading-of-Forecast-Area/m-p/365156#M12706</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/142314"&gt;@BCNAV&lt;/a&gt;&amp;nbsp;Please mark the appropriate solution as the correct answer.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2017 19:09:14 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-06-07T19:09:14Z</dc:date>
    <item>
      <title>SGPLOT and Shading of Forecast Area</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-and-Shading-of-Forecast-Area/m-p/364165#M12641</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to be able to shade an area when using sgplot. Specifically, if I know my forecast will start January 1, 2016, I'd like to shade all areas to the right of that date with light gray&amp;nbsp;shading in the background (not covering the forecast line graph).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;-Bill&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jun 2017 21:29:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-and-Shading-of-Forecast-Area/m-p/364165#M12641</guid>
      <dc:creator>BCNAV</dc:creator>
      <dc:date>2017-06-04T21:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT and Shading of Forecast Area</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-and-Shading-of-Forecast-Area/m-p/364168#M12642</link>
      <description>&lt;P&gt;I'll leave the tweaking of the options up to you,&amp;nbsp;but here's a demo on how to get started using a&amp;nbsp;SASHelp dataset.&lt;/P&gt;
&lt;P&gt;BAND is the statement in PROC SGPLOT that you're looking for, fillattrs seems to control the transparency and colour, which will be important.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.stocks;
where stock ='IBM';
scatter x=date y=open;
band y=open lower="01Jan2000"d upper= "01Jan2006"d / fillattrs=(color = red transparency=0.5) ;
run;quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n1t2ihc734azuvn17021ri2cl057.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n1t2ihc734azuvn17021ri2cl057.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general if you're looking for Graph Examples, see the SAS Graph Gallery or robslink.com for many, many samples.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jun 2017 22:12:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-and-Shading-of-Forecast-Area/m-p/364168#M12642</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-04T22:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT and Shading of Forecast Area</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-and-Shading-of-Forecast-Area/m-p/364279#M12646</link>
      <description>&lt;P&gt;You might want to use a BLOCK plot for this type of display. Here is a simple example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data air;
set sashelp.air;
lenth shade $ 8;
if date &amp;gt;= '01jan1957'd then shade="Forecast";
else shade="Actual";
run;

proc sgplot data=air;
block x=date block=shade / filltype=alternate fillattrs=GraphAltBlock altfillattrs=GraphBlock;
series x=date y=air;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;See&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n0ikbvq5nwz6ezn1czzi40aw048o.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n0ikbvq5nwz6ezn1czzi40aw048o.htm&lt;/A&gt; for more syntax options.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2017 14:28:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-and-Shading-of-Forecast-Area/m-p/364279#M12646</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2017-06-05T14:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT and Shading of Forecast Area</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-and-Shading-of-Forecast-Area/m-p/364297#M12648</link>
      <description>&lt;P&gt;See the example and code in the article &lt;A href="http://blogs.sas.com/content/iml/2016/11/21/forecast-regions.html" target="_self"&gt;"Highlight forecast regions in graphs."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2017 15:31:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-and-Shading-of-Forecast-Area/m-p/364297#M12648</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-06-05T15:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT and Shading of Forecast Area</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-and-Shading-of-Forecast-Area/m-p/365104#M12704</link>
      <description>&lt;P&gt;Thanks to all...I have it working perfectly!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;-Bill&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 17:28:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-and-Shading-of-Forecast-Area/m-p/365104#M12704</guid>
      <dc:creator>BCNAV</dc:creator>
      <dc:date>2017-06-07T17:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT and Shading of Forecast Area</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-and-Shading-of-Forecast-Area/m-p/365156#M12706</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/142314"&gt;@BCNAV&lt;/a&gt;&amp;nbsp;Please mark the appropriate solution as the correct answer.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 19:09:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-and-Shading-of-Forecast-Area/m-p/365156#M12706</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-07T19:09:14Z</dc:date>
    </item>
  </channel>
</rss>

