<?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: PROC SGLPOT BY GROUP DATA LINE PATTERNS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGLPOT-BY-GROUP-DATA-LINE-PATTERNS/m-p/868542#M343113</link>
    <description>&lt;P&gt;Yes, there is no space in the styleattrs and there was no error in the code. The code actually needed the AttrPriority=None in the ods graphics section. Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics / AttrPriority=None;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2023 01:05:54 GMT</pubDate>
    <dc:creator>atnk</dc:creator>
    <dc:date>2023-04-07T01:05:54Z</dc:date>
    <item>
      <title>PROC SGLPOT BY GROUP DATA LINE PATTERNS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGLPOT-BY-GROUP-DATA-LINE-PATTERNS/m-p/868511#M343096</link>
      <description>&lt;P&gt;Hi All, I have a&amp;nbsp; variable named "company" with six&amp;nbsp; "product" categories. I am able to assign different colors but I am unable to assign different lines patterns. For example, I tried assigning the first three "dash" and the subsequent three "solid" but it does not work. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=in;&lt;/P&gt;&lt;P&gt;inset 'Types' / textattrs=GraphLabelText;&lt;/P&gt;&lt;P&gt;style attrs&lt;/P&gt;&lt;P&gt;datacontrastcolors=(blue black red green orange purple)&lt;/P&gt;&lt;P&gt;datalinepatterns=(dash dash dash solid solid solid);&lt;/P&gt;&lt;P&gt;yaxis label='Unit $';&lt;/P&gt;&lt;P&gt;series x=Qtr y=company / group=product;&lt;/P&gt;&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 20:16:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SGLPOT-BY-GROUP-DATA-LINE-PATTERNS/m-p/868511#M343096</guid>
      <dc:creator>atnk</dc:creator>
      <dc:date>2023-04-06T20:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGLPOT BY GROUP DATA LINE PATTERNS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGLPOT-BY-GROUP-DATA-LINE-PATTERNS/m-p/868517#M343101</link>
      <description>&lt;P&gt;Doesn't work is awful vague.&lt;BR /&gt;&lt;BR /&gt;Are there errors in the log?: Post the code and log in a code box opened with the "&amp;lt;&amp;gt;" to maintain formatting of error messages.&lt;BR /&gt;&lt;BR /&gt;No output? Post any log in a code box.&lt;BR /&gt;&lt;BR /&gt;Unexpected output? Provide input data in the form of data step code pasted into a code box, the actual results and the expected results. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the "&amp;lt;&amp;gt;" icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One thing, the code that you show uses "style attrs". The statement requires "styleattrs", one word, no space and if the code you submitted had the space it was a syntax error and wouldn't apply the attributes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I dummy up some data to make a simple series plot it get 3 dashed (blue black and red) and 3 solid lines (green orange (not notable orange on my monitor but that's not uncommon) and purple.&lt;/P&gt;
&lt;PRE&gt;data example;
   do product=1,2,3,4,5,6;
      do qtr=1 to 10;
         company= qtr/product;
         output;
      end;
   end;
run;
proc sgplot data=example;
   inset 'Types' / textattrs=GraphLabelText;
   styleattrs
      datacontrastcolors=(blue black red green orange purple)
      datalinepatterns=(dash dash dash solid solid solid);
   yaxis label='Unit $';
   series x=Qtr y=company / group=product;
run; &lt;/PRE&gt;
&lt;P&gt;Recommend providing example data in the form of a data step if you want us to make something that works with your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 20:43:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SGLPOT-BY-GROUP-DATA-LINE-PATTERNS/m-p/868517#M343101</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-04-06T20:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGLPOT BY GROUP DATA LINE PATTERNS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGLPOT-BY-GROUP-DATA-LINE-PATTERNS/m-p/868542#M343113</link>
      <description>&lt;P&gt;Yes, there is no space in the styleattrs and there was no error in the code. The code actually needed the AttrPriority=None in the ods graphics section. Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics / AttrPriority=None;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 01:05:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SGLPOT-BY-GROUP-DATA-LINE-PATTERNS/m-p/868542#M343113</guid>
      <dc:creator>atnk</dc:creator>
      <dc:date>2023-04-07T01:05:54Z</dc:date>
    </item>
  </channel>
</rss>

