<?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 bubble plot with group coloring - specify group color in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring-specify-group-color/m-p/430898#M14871</link>
    <description>&lt;P&gt;If you know the order of the categories and you only want to do this one time, you can&lt;A href="http://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.2&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p1dt33l6a6epk6n1chtynsgsjgit.htm&amp;amp;locale=en" target="_self"&gt; use the&amp;nbsp;STYLEATTRS statement&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.class;
  styleattrs datacolors=(blue pink);
  bubble x=height y=weight size=age / group=sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For more complicated scenarios, discrete data maps are more powerful and flexible, as Warren said.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jan 2018 13:34:20 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2018-01-25T13:34:20Z</dc:date>
    <item>
      <title>proc sgplot bubble plot with group coloring - specify group color</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring-specify-group-color/m-p/430866#M14869</link>
      <description>&lt;P&gt;Using this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;title&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"Bubble plot by Sex"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;sgplot&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;sashelp&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;class&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  bubble x&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;height y&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;weight&lt;/SPAN&gt; size&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;age &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;group&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;sex&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Is there a way to assign a specific color to each level in the sex column (e.g. male=green, female=red)&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 12:05:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring-specify-group-color/m-p/430866#M14869</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2018-01-25T12:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot bubble plot with group coloring - specify group color</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring-specify-group-color/m-p/430867#M14870</link>
      <description>&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2013/04/02/attribute-maps-1/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2013/04/02/attribute-maps-1/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Discrete attribute maps.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 12:08:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring-specify-group-color/m-p/430867#M14870</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2018-01-25T12:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot bubble plot with group coloring - specify group color</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring-specify-group-color/m-p/430898#M14871</link>
      <description>&lt;P&gt;If you know the order of the categories and you only want to do this one time, you can&lt;A href="http://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.2&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p1dt33l6a6epk6n1chtynsgsjgit.htm&amp;amp;locale=en" target="_self"&gt; use the&amp;nbsp;STYLEATTRS statement&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.class;
  styleattrs datacolors=(blue pink);
  bubble x=height y=weight size=age / group=sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For more complicated scenarios, discrete data maps are more powerful and flexible, as Warren said.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 13:34:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring-specify-group-color/m-p/430898#M14871</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-01-25T13:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot bubble plot with group coloring - specify group color</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring-specify-group-color/m-p/430910#M14872</link>
      <description>thanks - Warren's suggestion is great but probably overkill for my situation. I am getting ERROR 180-322: Statement is not valid or it is used out of proper order. when I add the line styleattrs ... any ideas?</description>
      <pubDate>Thu, 25 Jan 2018 13:58:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring-specify-group-color/m-p/430910#M14872</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2018-01-25T13:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot bubble plot with group coloring - specify group color</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring-specify-group-color/m-p/430911#M14873</link>
      <description>&lt;P&gt;Please post your log where the error appear?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 13:59:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring-specify-group-color/m-p/430911#M14873</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-01-25T13:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot bubble plot with group coloring - specify group color</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring-specify-group-color/m-p/430928#M14874</link>
      <description>&lt;P&gt;The STYLEATTRS statement was added in SAS 9.4. , so if you are running an old version of SAS you would get an error like you are seeing.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 14:38:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring-specify-group-color/m-p/430928#M14874</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-01-25T14:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot bubble plot with group coloring - specify group color</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring-specify-group-color/m-p/430930#M14875</link>
      <description>OK thanks makes sense. I will run this in the newer env.</description>
      <pubDate>Thu, 25 Jan 2018 14:41:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-bubble-plot-with-group-coloring-specify-group-color/m-p/430930#M14875</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2018-01-25T14:41:12Z</dc:date>
    </item>
  </channel>
</rss>

