<?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: how to change the pattern in proc sgplot in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-the-pattern-in-proc-sgplot/m-p/670277#M201179</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The fillpattern option was introduced with SAS 9.4 M5, you can read more about that here:&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=grstatprocwhatsnew94.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=grstatprocwhatsnew94.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should consider upgrading...&lt;/P&gt;
&lt;P&gt;greetings,&lt;/P&gt;
&lt;P&gt;Mathias.&lt;/P&gt;</description>
    <pubDate>Sat, 18 Jul 2020 08:13:36 GMT</pubDate>
    <dc:creator>MCoopmans</dc:creator>
    <dc:date>2020-07-18T08:13:36Z</dc:date>
    <item>
      <title>how to change the pattern in proc sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-the-pattern-in-proc-sgplot/m-p/667331#M199832</link>
      <description>&lt;P&gt;Dear SAS community, I would like to use "pattern" option in "Band" statement, but the code does not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Referring to the instruction under&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n1t2ihc734azuvn17021ri2cl057.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p07xphkuqlrhegn1gw3om8nho8t2a"&gt;https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n1t2ihc734azuvn17021ri2cl057.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p07xphkuqlrhegn1gw3om8nho8t2a&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use&amp;nbsp;FILLPATTERN and FILLPATTERNATTRS=(pattern=R1) in "band" statement. it does not work. Thank you as always!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=Density;
&amp;nbsp;series x=height ;
&amp;nbsp;band x=height upper=upside lower=lowside / fillattrs=(color=red transparency=0.7) FILLPATTERN FILLPATTERNATTRS=(pattern=R1) legendlabel="Lower Decile";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 04:10:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-the-pattern-in-proc-sgplot/m-p/667331#M199832</guid>
      <dc:creator>JacAder</dc:creator>
      <dc:date>2020-07-07T04:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to change the pattern in proc sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-the-pattern-in-proc-sgplot/m-p/667421#M199860</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The series statement needs both an x= and a y= argument. You can omit the "series" statement and only have a "band" when you don't have a variable to plot and only want the bands to be visible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;running this example would generate some data and a plot including a pattern in the band as expected:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
 value=INT(ranuni(765)*100);
 _up=value*.1;
 _low=_up;
 do x=1 to 100;
  value=value+(10-CEIL(20*ranuni(203)));
  up=value+_up;
  low=value-_low;
  _up=_up+(4-CEIL(5*ranuni(203)));
  _low=_low+(4-CEIL(5*ranuni(203)));
  output;
 end;
 drop _:;
run;

proc sgplot data=want;
 series x=x y=value;
 band x=x upper=up lower=low / fillattrs=(color=red transparency=0.7)
     FILLPATTERN FILLPATTERNATTRS=(pattern=R3) legendlabel="Lower Decile";
run;&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;and this is the output generated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sgplot.png" style="width: 318px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/46962i44718DA0FF9328C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="sgplot.png" alt="sgplot.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the best,&lt;/P&gt;
&lt;P&gt;Mathias.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 12:13:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-the-pattern-in-proc-sgplot/m-p/667421#M199860</guid>
      <dc:creator>MCoopmans</dc:creator>
      <dc:date>2020-07-07T12:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to change the pattern in proc sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-the-pattern-in-proc-sgplot/m-p/670239#M201159</link>
      <description>&lt;P&gt;Mathias, really appreciate your help!&amp;nbsp; I tried the code, and the same error is still there:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JacAder_0-1595027859484.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47266i4D70E33483E50F15/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JacAder_0-1595027859484.png" alt="JacAder_0-1595027859484.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JacAder_1-1595027985138.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47267iA48F5539797C5A10/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JacAder_1-1595027985138.png" alt="JacAder_1-1595027985138.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then I use "fill" rather than "fillpattern", the error is as following:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JacAder_0-1595028180763.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47268i1F26E9A642A0BFD2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JacAder_0-1595028180763.png" alt="JacAder_0-1595028180763.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is the error SAS version specific?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 23:27:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-the-pattern-in-proc-sgplot/m-p/670239#M201159</guid>
      <dc:creator>JacAder</dc:creator>
      <dc:date>2020-07-17T23:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to change the pattern in proc sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-the-pattern-in-proc-sgplot/m-p/670277#M201179</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The fillpattern option was introduced with SAS 9.4 M5, you can read more about that here:&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=grstatprocwhatsnew94.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=grstatprocwhatsnew94.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should consider upgrading...&lt;/P&gt;
&lt;P&gt;greetings,&lt;/P&gt;
&lt;P&gt;Mathias.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 08:13:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-the-pattern-in-proc-sgplot/m-p/670277#M201179</guid>
      <dc:creator>MCoopmans</dc:creator>
      <dc:date>2020-07-18T08:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to change the pattern in proc sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-the-pattern-in-proc-sgplot/m-p/671669#M201730</link>
      <description>&lt;P&gt;thanks again, will make my supervisor aware.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 05:29:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-the-pattern-in-proc-sgplot/m-p/671669#M201730</guid>
      <dc:creator>JacAder</dc:creator>
      <dc:date>2020-07-23T05:29:52Z</dc:date>
    </item>
  </channel>
</rss>

