<?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 Proc sgplot formatting, getting rid of grey line in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-sgplot-formatting-getting-rid-of-grey-line/m-p/682688#M24124</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having an issue getting rid of the grey line that's coming up in the middle of my plot.&amp;nbsp; It comes up every time I make a graph with sgplot and I would like to get rid of it.&amp;nbsp; Any help is appreciated!&amp;nbsp; The code and plot are located below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc means data=all mean median max min std;&lt;BR /&gt;var LAI_mean;&lt;BR /&gt;class trt cult week;&lt;BR /&gt;output out=meandat mean=averageLAI stderr=stderr;&lt;/P&gt;&lt;P&gt;data reshape(drop=stderr);&lt;BR /&gt;set meandat;&lt;BR /&gt;lower = averageLAI - stderr;&lt;BR /&gt;upper = averageLAI + stderr;&lt;/P&gt;&lt;P&gt;proc sgplot data=reshape;&lt;BR /&gt;scatter x=week y=averageLAI /yerrorlower=lower yerrorupper=upper;&lt;BR /&gt;series x=week y=averageLAI /group=trt&lt;BR /&gt;lineattrs=(pattern=solid thickness=2);&lt;BR /&gt;where cult=1;&lt;BR /&gt;title1 'LAI cult 1';&lt;/P&gt;&lt;P&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="Joe_NMSU_0-1599667240852.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49176i8A2C7B8EC9EFA9F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Joe_NMSU_0-1599667240852.png" alt="Joe_NMSU_0-1599667240852.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Sep 2020 16:03:43 GMT</pubDate>
    <dc:creator>Joe_NMSU</dc:creator>
    <dc:date>2020-09-09T16:03:43Z</dc:date>
    <item>
      <title>Proc sgplot formatting, getting rid of grey line</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-sgplot-formatting-getting-rid-of-grey-line/m-p/682688#M24124</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having an issue getting rid of the grey line that's coming up in the middle of my plot.&amp;nbsp; It comes up every time I make a graph with sgplot and I would like to get rid of it.&amp;nbsp; Any help is appreciated!&amp;nbsp; The code and plot are located below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc means data=all mean median max min std;&lt;BR /&gt;var LAI_mean;&lt;BR /&gt;class trt cult week;&lt;BR /&gt;output out=meandat mean=averageLAI stderr=stderr;&lt;/P&gt;&lt;P&gt;data reshape(drop=stderr);&lt;BR /&gt;set meandat;&lt;BR /&gt;lower = averageLAI - stderr;&lt;BR /&gt;upper = averageLAI + stderr;&lt;/P&gt;&lt;P&gt;proc sgplot data=reshape;&lt;BR /&gt;scatter x=week y=averageLAI /yerrorlower=lower yerrorupper=upper;&lt;BR /&gt;series x=week y=averageLAI /group=trt&lt;BR /&gt;lineattrs=(pattern=solid thickness=2);&lt;BR /&gt;where cult=1;&lt;BR /&gt;title1 'LAI cult 1';&lt;/P&gt;&lt;P&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="Joe_NMSU_0-1599667240852.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49176i8A2C7B8EC9EFA9F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Joe_NMSU_0-1599667240852.png" alt="Joe_NMSU_0-1599667240852.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 16:03:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-sgplot-formatting-getting-rid-of-grey-line/m-p/682688#M24124</guid>
      <dc:creator>Joe_NMSU</dc:creator>
      <dc:date>2020-09-09T16:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot formatting, getting rid of grey line</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-sgplot-formatting-getting-rid-of-grey-line/m-p/682697#M24125</link>
      <description>&lt;P&gt;The legend is telling you that you have missing values for your group variable TRT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may be that your Proc Means wants the option NWAY set so that the summaries don't create the groups you are getting. Or maybe you only want to plot or keep some of the _TYPE_ levels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;YOU have to look at the result of your Proc means data to decide which records you want to plot/ keep.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 16:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-sgplot-formatting-getting-rid-of-grey-line/m-p/682697#M24125</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-09T16:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot formatting, getting rid of grey line</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-sgplot-formatting-getting-rid-of-grey-line/m-p/682703#M24128</link>
      <description>Awesome! Exactly what I needed to know, thanks for the help.</description>
      <pubDate>Wed, 09 Sep 2020 16:26:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-sgplot-formatting-getting-rid-of-grey-line/m-p/682703#M24128</guid>
      <dc:creator>Joe_NMSU</dc:creator>
      <dc:date>2020-09-09T16:26:34Z</dc:date>
    </item>
  </channel>
</rss>

