<?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 adding diagonal line in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-adding-diagonal-line/m-p/177789#M6523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code should have the following structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sort data=myData; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;by subject day; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sgplot data=myData;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;series y=CFU x=day / group=subject;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jan 2015 02:00:51 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2015-01-12T02:00:51Z</dc:date>
    <item>
      <title>Proc SGPLOT adding diagonal line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-adding-diagonal-line/m-p/177787#M6521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on some graphs and getting a funky result with sgplot. I'm plotting fecal results by day. Most subjects have 0 fecal culture at day 1, but when I add in the subject with &amp;gt;0 fecal culture, sgplot creates a diagonal line. Graph 1 shows that one subject has a fecal culture of 3 and instead of dropping to 0 on the rest of the days as is in the dataset, sgplot draws a diagonal line. Graph 2 shows how this subject's results should be shown. How do I force sgplot to represent the true values for this subject? I have tried to set 0 values to 0.1 for this subject and get the same results. I also do not want to take out this subject from the graph. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarah&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11554iC32369047E436EA4/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="graph1.png" title="graph1.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11555i27F6357B0597B2FD/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="graph2.png" title="graph2.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2015 21:06:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-adding-diagonal-line/m-p/177787#M6521</guid>
      <dc:creator>sarahsasuser</dc:creator>
      <dc:date>2015-01-11T21:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPLOT adding diagonal line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-adding-diagonal-line/m-p/177788#M6522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your code as well, possibly some sample data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your data sorted by anything?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2015 23:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-adding-diagonal-line/m-p/177788#M6522</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-01-11T23:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPLOT adding diagonal line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-adding-diagonal-line/m-p/177789#M6523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code should have the following structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sort data=myData; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;by subject day; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sgplot data=myData;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;series y=CFU x=day / group=subject;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 02:00:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-adding-diagonal-line/m-p/177789#M6523</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-01-12T02:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPLOT adding diagonal line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-adding-diagonal-line/m-p/177790#M6524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks PGStats, that worked to get rid of the diagonal. However, is there a way to make the groups all one color? There are &amp;gt;30 subjects and 30 color and line combinations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 03:16:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-adding-diagonal-line/m-p/177790#M6524</guid>
      <dc:creator>sarahsasuser</dc:creator>
      <dc:date>2015-01-12T03:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPLOT adding diagonal line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-adding-diagonal-line/m-p/177791#M6525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, give the same line color attribute to all lines with LINEATTRS. You might also want to add NOAUTOLEGEND to prevent the production of a meaningless legend :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sort data=myData; by subject day; run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sgplot data=myData noautolegend;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;series y=CFU x=day / group=subject lineattrs=(color=darkblue);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 03:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-adding-diagonal-line/m-p/177791#M6525</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-01-12T03:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPLOT adding diagonal line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-adding-diagonal-line/m-p/177792#M6526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With that many groups I might be tempted to go to SGPanel an produce multiple graphs as you may not be able to tell which values are obscured by lines tracing over one another especially with lots of integer values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 15:52:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-SGPLOT-adding-diagonal-line/m-p/177792#M6526</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-01-12T15:52:18Z</dc:date>
    </item>
  </channel>
</rss>

