<?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 How to remove missing variable in legend. in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-remove-missing-variable-in-legend/m-p/710941#M20885</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I have a dataset with a few missing dates. I am trying to plot time(year/month) vs rates. When I plot my graph using sgplot grouping by year, it produces icons of all the relevant years as well as the missing dates (in grey) in the legend. There is no grey line plot. Is there a way of fixing this if I am not able to correct the missing dates? How can I remove the grey icon that shows missing dates? is it the proper way to solve it?&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jan 2021 23:22:20 GMT</pubDate>
    <dc:creator>pearson101</dc:creator>
    <dc:date>2021-01-12T23:22:20Z</dc:date>
    <item>
      <title>How to remove missing variable in legend.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-remove-missing-variable-in-legend/m-p/710941#M20885</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I have a dataset with a few missing dates. I am trying to plot time(year/month) vs rates. When I plot my graph using sgplot grouping by year, it produces icons of all the relevant years as well as the missing dates (in grey) in the legend. There is no grey line plot. Is there a way of fixing this if I am not able to correct the missing dates? How can I remove the grey icon that shows missing dates? is it the proper way to solve it?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 23:22:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-remove-missing-variable-in-legend/m-p/710941#M20885</guid>
      <dc:creator>pearson101</dc:creator>
      <dc:date>2021-01-12T23:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove missing variable in legend.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-remove-missing-variable-in-legend/m-p/710944#M20886</link>
      <description>&lt;P&gt;Here is the code I use&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;proc sgplot data=mean_kola_num;&lt;BR /&gt;styleattrs datacontrastcolors=(blue red green brown);&lt;BR /&gt;series x=month_name y=mean_t_b / group=annee markers&lt;BR /&gt;legendlabel="original" ;&lt;BR /&gt;xaxis label='Month';&lt;BR /&gt;yaxis label='Average';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 23:31:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-remove-missing-variable-in-legend/m-p/710944#M20886</guid>
      <dc:creator>pearson101</dc:creator>
      <dc:date>2021-01-12T23:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove missing variable in legend.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-remove-missing-variable-in-legend/m-p/710953#M20887</link>
      <description>You can add a WHERE statement to filter out missing values?&lt;BR /&gt;Fill in the variable name as needed.&lt;BR /&gt;&lt;BR /&gt;Where not missing(variable) and not missing(variable) and not missing(variable);&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jan 2021 00:24:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-remove-missing-variable-in-legend/m-p/710953#M20887</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-01-13T00:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove missing variable in legend.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-remove-missing-variable-in-legend/m-p/710954#M20888</link>
      <description>&lt;P&gt;Thank you, would that go in the sgplot section?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 00:32:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-remove-missing-variable-in-legend/m-p/710954#M20888</guid>
      <dc:creator>pearson101</dc:creator>
      <dc:date>2021-01-13T00:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove missing variable in legend.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-remove-missing-variable-in-legend/m-p/710958#M20889</link>
      <description>Yes, WHERE statements generally go after the PROC statement (good practice) and can go in almost every PROC/DATA STEP in SAS.</description>
      <pubDate>Wed, 13 Jan 2021 00:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-remove-missing-variable-in-legend/m-p/710958#M20889</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-01-13T00:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove missing variable in legend.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-remove-missing-variable-in-legend/m-p/711091#M20890</link>
      <description>&lt;P&gt;On the SERIES statement, include the NOMISSINGGROUP option, which&amp;nbsp;specifies that missing values of the group variable are not included in the plot.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 13:50:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-remove-missing-variable-in-legend/m-p/711091#M20890</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-01-13T13:50:25Z</dc:date>
    </item>
  </channel>
</rss>

