<?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 SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT/m-p/111170#M4202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;What happens if you take the format statement out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran your code (using SASHELP.class)&lt;/P&gt;&lt;P&gt;and attached is what I got:&lt;/P&gt;&lt;P&gt;proc sgplot data=sashelp.class;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; loess x=age y=height/smooth=0.4 group=sex nomarkers lineattrs= (thickness=2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; keylegend / title="Sex Category";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; yaxis label='Height' grid values = (30 to 100 by 20);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; xaxis label='Age' grid values = (10 to 15 by 1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this sort of what you want?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10956iF97B245CFDDFED23/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="SGPlot3.png" title="SGPlot3.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jun 2013 18:39:50 GMT</pubDate>
    <dc:creator>AncaTilea</dc:creator>
    <dc:date>2013-06-18T18:39:50Z</dc:date>
    <item>
      <title>Proc SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT/m-p/111168#M4200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a graph using proc sgplot and the loess function. Here is the code that I am using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=bmipred;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format BMIgrp BMIgrpfmt.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; loess x=t y=pred/smooth=0.4 group=BMIgrp nomarkers lineattrs= (thickness=2);&lt;/P&gt;&lt;P&gt;&amp;nbsp; keylegend / title="BMI Category";&lt;/P&gt;&lt;P&gt;&amp;nbsp; yaxis label='Diastolic Blood Pressure' grid values = (0 to 200 by 20);&lt;/P&gt;&lt;P&gt;&amp;nbsp; xaxis label='Time' grid values = (0 to 50 by 10);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I am running into is the "lineattrs" option. Since I am using the group option "group=BMIgrp", it will produce three lines for each of the BMI categories I am using. Unfortunately, it produces the same solid line pattern, with different colors, for each BMI category. Is there a way for me to specify that each BMI category line should have a different line pattern? For instance, is there a way for the Normal weight category to have a dash line, the Obese to have a solid line, and the Overweight category to have a dash dash line? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought if didn't include a 'pattern=' within the lineattrs option that it would produce three different line patterns for each BMI category, but it does not. Could someone please help me! Thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 18:05:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT/m-p/111168#M4200</guid>
      <dc:creator>kelly6984</dc:creator>
      <dc:date>2013-06-18T18:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT/m-p/111169#M4201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If using SAS version 9.3, you could use an attribute map dataset to define the visual attributes for each group.&lt;/P&gt;&lt;P&gt;With previous SAS versions you have to modify the graphic style template, more specifically, the&lt;STRONG&gt; graphdata1-graphdata&lt;EM&gt;n&lt;/EM&gt;&lt;/STRONG&gt; style elements. Have a look at the &lt;STRONG&gt;modstyle&lt;/STRONG&gt; style template modification macro, it can save you a lot of time. - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 18:38:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT/m-p/111169#M4201</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-06-18T18:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT/m-p/111170#M4202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;What happens if you take the format statement out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran your code (using SASHELP.class)&lt;/P&gt;&lt;P&gt;and attached is what I got:&lt;/P&gt;&lt;P&gt;proc sgplot data=sashelp.class;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; loess x=age y=height/smooth=0.4 group=sex nomarkers lineattrs= (thickness=2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; keylegend / title="Sex Category";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; yaxis label='Height' grid values = (30 to 100 by 20);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; xaxis label='Age' grid values = (10 to 15 by 1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this sort of what you want?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10956iF97B245CFDDFED23/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="SGPlot3.png" title="SGPlot3.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 18:39:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT/m-p/111170#M4202</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2013-06-18T18:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT/m-p/111171#M4203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are likely using SAS 9.3 with HTML output.&amp;nbsp; In this case, the default style is HTMLBlue that is a "COLOR" priority style which only rotates the colors first.&amp;nbsp;&amp;nbsp; If you just want different patterns for each group (and don't care what they are), set STYLE=LISTING on the HTML destination.&amp;nbsp; The LISTING style does not have COLOR priority, and will rotate both color and linepatterns (or symbols) for each group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to assign specific line patterns for the group values, use the DATTRMAP feature as suggested by PGStats.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 18:46:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT/m-p/111171#M4203</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2013-06-18T18:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT/m-p/111172#M4204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! Using "ods html style=listing" gave me exactly what I needed! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 19:35:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT/m-p/111172#M4204</guid>
      <dc:creator>kelly6984</dc:creator>
      <dc:date>2013-06-18T19:35:39Z</dc:date>
    </item>
  </channel>
</rss>

