<?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 SAS 9.4. Proc  SGPLOT: creating dataline patterns in hbar and removing default color from hbar in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SAS-9-4-Proc-SGPLOT-creating-dataline-patterns-in-hbar-and/m-p/513767#M17426</link>
    <description>&lt;P&gt;Hi SAS community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new here and struggling to produce the graph figure attached here with datalinepatterns. The goal is to produce a bivariate graph of Q2(Have a condition needing care right away coded as "yes" or "No") and Q71(Race/Ethnicity coded as "Other/Mixed", "Black", "White"). See attachment labeled "datalinepatterns_graph.doc".&lt;/P&gt;&lt;P&gt;Just a note: All my variables are categorical.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my code and the output from the code is attached as well. Please see graph output in attachments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Proc&lt;/STRONG&gt; &lt;STRONG&gt;sgplot&lt;/STRONG&gt; data = WORK.SASA;&lt;/P&gt;&lt;P&gt;yaxis valueattrs=(size=&lt;STRONG&gt;12&lt;/STRONG&gt;pt) label = "Ethnicity";&lt;/P&gt;&lt;P&gt;xaxis valueattrs=(size=&lt;STRONG&gt;12&lt;/STRONG&gt;pt) label = "Percentage";&lt;/P&gt;&lt;P&gt;hbar Q71 / GROUP = Q2 stat=Percent barwidth=&lt;STRONG&gt;0.85&lt;/STRONG&gt; seglabel dataskin=pressed;&lt;/P&gt;&lt;P&gt;title 'Condition needing urgent care vs race/ethnicity';&lt;/P&gt;&lt;P&gt;ods graphics / attrpriority=none;&lt;/P&gt;&lt;P&gt;styleattrs datalinepatterns=(dash shortdash);&lt;/P&gt;&lt;P&gt;keylegend / location=outside position=bottom across=&lt;STRONG&gt;1&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For reference, I am using SAS 9.4. I'm unable to include the dataset on here. Thank you for your help!&lt;/P&gt;</description>
    <pubDate>Fri, 16 Nov 2018 02:55:42 GMT</pubDate>
    <dc:creator>AnneHsr</dc:creator>
    <dc:date>2018-11-16T02:55:42Z</dc:date>
    <item>
      <title>SAS 9.4. Proc  SGPLOT: creating dataline patterns in hbar and removing default color from hbar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-9-4-Proc-SGPLOT-creating-dataline-patterns-in-hbar-and/m-p/513767#M17426</link>
      <description>&lt;P&gt;Hi SAS community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new here and struggling to produce the graph figure attached here with datalinepatterns. The goal is to produce a bivariate graph of Q2(Have a condition needing care right away coded as "yes" or "No") and Q71(Race/Ethnicity coded as "Other/Mixed", "Black", "White"). See attachment labeled "datalinepatterns_graph.doc".&lt;/P&gt;&lt;P&gt;Just a note: All my variables are categorical.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my code and the output from the code is attached as well. Please see graph output in attachments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Proc&lt;/STRONG&gt; &lt;STRONG&gt;sgplot&lt;/STRONG&gt; data = WORK.SASA;&lt;/P&gt;&lt;P&gt;yaxis valueattrs=(size=&lt;STRONG&gt;12&lt;/STRONG&gt;pt) label = "Ethnicity";&lt;/P&gt;&lt;P&gt;xaxis valueattrs=(size=&lt;STRONG&gt;12&lt;/STRONG&gt;pt) label = "Percentage";&lt;/P&gt;&lt;P&gt;hbar Q71 / GROUP = Q2 stat=Percent barwidth=&lt;STRONG&gt;0.85&lt;/STRONG&gt; seglabel dataskin=pressed;&lt;/P&gt;&lt;P&gt;title 'Condition needing urgent care vs race/ethnicity';&lt;/P&gt;&lt;P&gt;ods graphics / attrpriority=none;&lt;/P&gt;&lt;P&gt;styleattrs datalinepatterns=(dash shortdash);&lt;/P&gt;&lt;P&gt;keylegend / location=outside position=bottom across=&lt;STRONG&gt;1&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For reference, I am using SAS 9.4. I'm unable to include the dataset on here. Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 02:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-9-4-Proc-SGPLOT-creating-dataline-patterns-in-hbar-and/m-p/513767#M17426</guid>
      <dc:creator>AnneHsr</dc:creator>
      <dc:date>2018-11-16T02:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4. Proc  SGPLOT: creating dataline patterns in hbar and removing default color from hbar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-9-4-Proc-SGPLOT-creating-dataline-patterns-in-hbar-and/m-p/513796#M17427</link>
      <description>&lt;P&gt;Welcome to the SAS community &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You do not have to use datalinepatterns. What you want to do is to create a fillpattern. You can use the Journal2 style like this to make a graph that looks almost as you want. I included a small example with the sashelp.cars data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html style=journal2;

data cars;
  set sashelp.cars (where=(type ne 'Hybrid' and origin ne 'Asia'));
run;

title 'Mileage by Type and Origin';
proc sgplot data=cars noborder;
  hbar type / response=mpg_city stat=percent group=origin groupdisplay=stack
              displaybaseline=auto clusterwidth=0.7;
  yaxis display=(noticks nolabel);
  xaxis display=(noticks nolabel);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Nov 2018 07:06:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-9-4-Proc-SGPLOT-creating-dataline-patterns-in-hbar-and/m-p/513796#M17427</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-11-16T07:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4. Proc  SGPLOT: creating dataline patterns in hbar and removing default color from hbar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-9-4-Proc-SGPLOT-creating-dataline-patterns-in-hbar-and/m-p/513926#M17430</link>
      <description>&lt;P&gt;Draycut,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!! It worked&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 15:50:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-9-4-Proc-SGPLOT-creating-dataline-patterns-in-hbar-and/m-p/513926#M17430</guid>
      <dc:creator>AnneHsr</dc:creator>
      <dc:date>2018-11-16T15:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4. Proc  SGPLOT: creating dataline patterns in hbar and removing default color from hbar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-9-4-Proc-SGPLOT-creating-dataline-patterns-in-hbar-and/m-p/513952#M17431</link>
      <description>&lt;P&gt;Great! So glad to help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please remember to mark the answer as a solution. This helps other users navigate the forum &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 16:16:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-9-4-Proc-SGPLOT-creating-dataline-patterns-in-hbar-and/m-p/513952#M17431</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-11-16T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

