<?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 Specify Legend Category Order in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Specify-Legend-Category-Order/m-p/239775#M8725</link>
    <description>&lt;P&gt;I just upgraded from SAS 9.3 to SAS 9.4 last month, and I am trying out a few new features. &amp;nbsp;One of which is using the LINECOLORGROUP= option in GTL for a spaghetti plot instead of looping through a template and adjusting all the GraphDataN color options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if this is the issue, but my legends are not showing up in the order that I would like. &amp;nbsp;The POSNEG variable is coded as&amp;nbsp;1=Positive, 2=Negative, and 9=Non-Evaluable. &amp;nbsp;I would like the legend to show up in that order with Positive=blue, Negative=red, and Non-Evaluable=orange. &amp;nbsp;However, running the attached code, you can see that the legend comes out as Positive=blue, Non-Evaluable=red, and Negative=orange. &amp;nbsp;I originally thought that the legend was ordering in reverse alphabetical order, but as I looked at the data, it looks like it is coming out in the order in which the category values appear in the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an option that I can change, or do I need to attempt some fun code as a workaround?&lt;/P&gt;</description>
    <pubDate>Thu, 17 Dec 2015 16:24:24 GMT</pubDate>
    <dc:creator>djbateman</dc:creator>
    <dc:date>2015-12-17T16:24:24Z</dc:date>
    <item>
      <title>Specify Legend Category Order</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Specify-Legend-Category-Order/m-p/239775#M8725</link>
      <description>&lt;P&gt;I just upgraded from SAS 9.3 to SAS 9.4 last month, and I am trying out a few new features. &amp;nbsp;One of which is using the LINECOLORGROUP= option in GTL for a spaghetti plot instead of looping through a template and adjusting all the GraphDataN color options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if this is the issue, but my legends are not showing up in the order that I would like. &amp;nbsp;The POSNEG variable is coded as&amp;nbsp;1=Positive, 2=Negative, and 9=Non-Evaluable. &amp;nbsp;I would like the legend to show up in that order with Positive=blue, Negative=red, and Non-Evaluable=orange. &amp;nbsp;However, running the attached code, you can see that the legend comes out as Positive=blue, Non-Evaluable=red, and Negative=orange. &amp;nbsp;I originally thought that the legend was ordering in reverse alphabetical order, but as I looked at the data, it looks like it is coming out in the order in which the category values appear in the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an option that I can change, or do I need to attempt some fun code as a workaround?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 16:24:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Specify-Legend-Category-Order/m-p/239775#M8725</guid>
      <dc:creator>djbateman</dc:creator>
      <dc:date>2015-12-17T16:24:24Z</dc:date>
    </item>
  </channel>
</rss>

