<?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 Help with Bar Patterns in PROC SGPLOT (VBAR) in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Help-with-Bar-Patterns-in-PROC-SGPLOT-VBAR/m-p/969335#M2726</link>
    <description>&lt;P&gt;Hello everyone,&lt;BR /&gt;I'm creating a bar graph using PROC SGPLOT with three biochar fractions and four application doses. The graph is almost exactly how I want it, but I'm trying to apply different fill patterns to each bar group.&lt;/P&gt;&lt;P&gt;From the VBARPARM STATEMENT, the fillpatternattrs (or datafillpatterns) option should allow this, but I couldn't get it to work as expected. I would like to assign the patterns "L1, X1, and R1" to the three fractions for clearer visual distinction.&lt;/P&gt;&lt;P&gt;Has anyone successfully done this in SAS OnDemand for Academics or have any suggestions?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics / width=800px height=600px attrpriority=none;&lt;BR /&gt;proc sgplot data=medias2;&lt;BR /&gt;styleattrs datacolors=(bgr blb dagry) datafillpatterns=(R1 L1 X1);&lt;BR /&gt;vbarparm category=dose&lt;BR /&gt;response=mean_pH / group=Fração2&lt;BR /&gt;groupdisplay=cluster&lt;BR /&gt;fillattrs=(transparency=0)&lt;BR /&gt;outlineattrs=(thickness=0 color=black)&lt;BR /&gt;name="barras";&lt;BR /&gt;yaxis label="Soil pH"&lt;BR /&gt;labelattrs=(family="Times New Roman" size=12 weight=bold)&lt;BR /&gt;valueattrs=(family="Times New Roman" size=12)&lt;BR /&gt;max=7;&lt;BR /&gt;xaxis label="Dose de biochar"&lt;BR /&gt;labelattrs=(family="Times New Roman" size=12 weight=bold)&lt;BR /&gt;valueattrs=(family="Times New Roman" size=12);&lt;BR /&gt;keylegend "barras" /&lt;BR /&gt;location=outside&lt;BR /&gt;position=right&lt;BR /&gt;titleattrs=(color=black family="Times New Roman" size=12)&lt;BR /&gt;valueattrs=(color=black family="Times New Roman" size=12)&lt;BR /&gt;noborder;&lt;BR /&gt;run;&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="josuerodrigues_0-1750277133284.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107899iE32A5E87D9E5E05A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="josuerodrigues_0-1750277133284.png" alt="josuerodrigues_0-1750277133284.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jun 2025 20:06:07 GMT</pubDate>
    <dc:creator>josuerodrigues</dc:creator>
    <dc:date>2025-06-18T20:06:07Z</dc:date>
    <item>
      <title>Help with Bar Patterns in PROC SGPLOT (VBAR)</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Help-with-Bar-Patterns-in-PROC-SGPLOT-VBAR/m-p/969335#M2726</link>
      <description>&lt;P&gt;Hello everyone,&lt;BR /&gt;I'm creating a bar graph using PROC SGPLOT with three biochar fractions and four application doses. The graph is almost exactly how I want it, but I'm trying to apply different fill patterns to each bar group.&lt;/P&gt;&lt;P&gt;From the VBARPARM STATEMENT, the fillpatternattrs (or datafillpatterns) option should allow this, but I couldn't get it to work as expected. I would like to assign the patterns "L1, X1, and R1" to the three fractions for clearer visual distinction.&lt;/P&gt;&lt;P&gt;Has anyone successfully done this in SAS OnDemand for Academics or have any suggestions?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics / width=800px height=600px attrpriority=none;&lt;BR /&gt;proc sgplot data=medias2;&lt;BR /&gt;styleattrs datacolors=(bgr blb dagry) datafillpatterns=(R1 L1 X1);&lt;BR /&gt;vbarparm category=dose&lt;BR /&gt;response=mean_pH / group=Fração2&lt;BR /&gt;groupdisplay=cluster&lt;BR /&gt;fillattrs=(transparency=0)&lt;BR /&gt;outlineattrs=(thickness=0 color=black)&lt;BR /&gt;name="barras";&lt;BR /&gt;yaxis label="Soil pH"&lt;BR /&gt;labelattrs=(family="Times New Roman" size=12 weight=bold)&lt;BR /&gt;valueattrs=(family="Times New Roman" size=12)&lt;BR /&gt;max=7;&lt;BR /&gt;xaxis label="Dose de biochar"&lt;BR /&gt;labelattrs=(family="Times New Roman" size=12 weight=bold)&lt;BR /&gt;valueattrs=(family="Times New Roman" size=12);&lt;BR /&gt;keylegend "barras" /&lt;BR /&gt;location=outside&lt;BR /&gt;position=right&lt;BR /&gt;titleattrs=(color=black family="Times New Roman" size=12)&lt;BR /&gt;valueattrs=(color=black family="Times New Roman" size=12)&lt;BR /&gt;noborder;&lt;BR /&gt;run;&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="josuerodrigues_0-1750277133284.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107899iE32A5E87D9E5E05A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="josuerodrigues_0-1750277133284.png" alt="josuerodrigues_0-1750277133284.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 20:06:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Help-with-Bar-Patterns-in-PROC-SGPLOT-VBAR/m-p/969335#M2726</guid>
      <dc:creator>josuerodrigues</dc:creator>
      <dc:date>2025-06-18T20:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Bar Patterns in PROC SGPLOT (VBAR)</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Help-with-Bar-Patterns-in-PROC-SGPLOT-VBAR/m-p/969338#M2727</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/464705"&gt;@josuerodrigues&lt;/a&gt;, you'll want to add a &lt;FONT color="#FF0000"&gt;fillpattern&lt;/FONT&gt; option to your vbarparm statement to enable the fill patterns selected, like so:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;...&lt;BR /&gt;&lt;BR /&gt;vbarparm category=dose response=mean_pH / group=Fração2 groupdisplay=cluster fillattrs=(transparency=0) outlineattrs=(thickness=0 color=black) name="barras" &lt;FONT color="#FF0000"&gt;fillpattern&lt;/FONT&gt;;&lt;BR /&gt;&lt;BR /&gt;...&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Jun 2025 20:43:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Help-with-Bar-Patterns-in-PROC-SGPLOT-VBAR/m-p/969338#M2727</guid>
      <dc:creator>antonbcristina</dc:creator>
      <dc:date>2025-06-18T20:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Bar Patterns in PROC SGPLOT (VBAR)</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Help-with-Bar-Patterns-in-PROC-SGPLOT-VBAR/m-p/969344#M2728</link>
      <description>&lt;PRE&gt;ods graphics / width=800px height=600px attrpriority=none;
proc sgplot data=sashelp.heart;
styleattrs datacolors=(bgr blb dagry) &lt;STRONG&gt;datacontrastcolors=(white)&lt;/STRONG&gt; datafillpatterns=(R1 L1 X1);
vbarparm category=smoking_status
response=height / group=bp_status
groupdisplay=cluster
fillattrs=(transparency=0)
outlineattrs=(thickness=0 color=black)
&lt;STRONG&gt;fillpattern&lt;/STRONG&gt;
;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1750295724951.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107901iA466B2BC9F2B55D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1750295724951.png" alt="Ksharp_0-1750295724951.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 01:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Help-with-Bar-Patterns-in-PROC-SGPLOT-VBAR/m-p/969344#M2728</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-06-19T01:15:32Z</dc:date>
    </item>
  </channel>
</rss>

