<?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: How do I specify which values SYMBOL should be applied to in the GPLOT procedure? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-specify-which-values-SYMBOL-should-be-applied-to-in-the/m-p/275048#M58535</link>
    <description>&lt;P&gt;In GPLOT you do not have this functionality. The Assignments of symbol to value are generally the first VALUE for the variable found is assigned the first Symbol, second to second, etc.&lt;/P&gt;
&lt;P&gt;So sort your data by HAPPY so that the value you want to be red is the first value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or move over to SGPLOT. With SAS 9.3 they added a feature to assign attributes to values for consistency.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jun 2016 17:32:21 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-06-03T17:32:21Z</dc:date>
    <item>
      <title>How do I specify which values SYMBOL should be applied to in the GPLOT procedure?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-specify-which-values-SYMBOL-should-be-applied-to-in-the/m-p/275027#M58531</link>
      <description>&lt;P&gt;I have a table with the following fields:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Happiness&lt;/TD&gt;&lt;TD&gt;Income&lt;/TD&gt;&lt;TD&gt;Happy&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;55000&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;90000&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;-3&lt;/TD&gt;&lt;TD&gt;120000&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;42000&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;-6&lt;/TD&gt;&lt;TD&gt;17000&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create&amp;nbsp;a scatter plot of the results where all&amp;nbsp;Happy="Yes" points show up as blue and all Happy="Red" points show up as red. Unfortunately, my code produces the inverse (happy folks show up as red). How do I specify that SYMBOL1 should be applied to Happy="No" values and SYMBOL2 to Happy="Yes"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/*Graph results*/
TITLE 'Happiness vs. Income';
SYMBOL1 VALUE=dot HEIGHT=0.3 CO=RED;
SYMBOL2 VALUE=dot HEIGHT=0.3 CO=STEEL;
PROC GPLOT DATA=PL_H3_DRC_POLS;
	PLOT Happiness*Income=Happy ;
RUN;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for the help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 16:46:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-specify-which-values-SYMBOL-should-be-applied-to-in-the/m-p/275027#M58531</guid>
      <dc:creator>Hadrien</dc:creator>
      <dc:date>2016-06-03T16:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I specify which values SYMBOL should be applied to in the GPLOT procedure?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-specify-which-values-SYMBOL-should-be-applied-to-in-the/m-p/275048#M58535</link>
      <description>&lt;P&gt;In GPLOT you do not have this functionality. The Assignments of symbol to value are generally the first VALUE for the variable found is assigned the first Symbol, second to second, etc.&lt;/P&gt;
&lt;P&gt;So sort your data by HAPPY so that the value you want to be red is the first value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or move over to SGPLOT. With SAS 9.3 they added a feature to assign attributes to values for consistency.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 17:32:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-specify-which-values-SYMBOL-should-be-applied-to-in-the/m-p/275048#M58535</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-06-03T17:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I specify which values SYMBOL should be applied to in the GPLOT procedure?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-specify-which-values-SYMBOL-should-be-applied-to-in-the/m-p/275107#M58538</link>
      <description>&lt;P&gt;Hi Hadrien,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think it will work if you just write COLOR= instead of CO= in your SYMBOL statements. (At least it worked in my SAS session.) CO= is &lt;EM&gt;not&lt;/EM&gt; an alias for COLOR=, but "specifies color for confidence limit lines and area outlines" (documentation).&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 20:25:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-specify-which-values-SYMBOL-should-be-applied-to-in-the/m-p/275107#M58538</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-06-03T20:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I specify which values SYMBOL should be applied to in the GPLOT procedure?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-specify-which-values-SYMBOL-should-be-applied-to-in-the/m-p/275390#M58549</link>
      <description>&lt;P&gt;Thanks for the help, I was confused about what CO did.&amp;nbsp;I got it to work using COLOR and changing the order&amp;nbsp;of the SYMBOL variables.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 13:28:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-specify-which-values-SYMBOL-should-be-applied-to-in-the/m-p/275390#M58549</guid>
      <dc:creator>Hadrien</dc:creator>
      <dc:date>2016-06-06T13:28:25Z</dc:date>
    </item>
  </channel>
</rss>

