<?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: With Color Ramp: Define which value corresponds to neutral in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/With-Color-Ramp-Define-which-value-corresponds-to-neutral/m-p/297646#M10529</link>
    <description>&lt;P&gt;That's excellent. Thank-you!&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2016 02:33:51 GMT</pubDate>
    <dc:creator>mduarte</dc:creator>
    <dc:date>2016-09-12T02:33:51Z</dc:date>
    <item>
      <title>With Color Ramp: Define which value corresponds to neutral</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/With-Color-Ramp-Define-which-value-corresponds-to-neutral/m-p/297280#M10518</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to define which value corresponds to neutral in the colour ramp for a bubble chart. &amp;nbsp;Does anyone know how I could achieve this? &amp;nbsp;E.g. For the following sample code, assume I wish to make weight 80 to be neutral colour (i.e. white)...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that in some instances the colour variable the desired neutral colour value will be less than the midpoint, an in others greater than the midpoint.&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;
bubble x=age y=height size=age / bradiusmin=0 
transparency=0.5 colorresponse=weight
colormodel=(blue white red);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;All help much appreciated&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marie&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 00:07:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/With-Color-Ramp-Define-which-value-corresponds-to-neutral/m-p/297280#M10518</guid>
      <dc:creator>mduarte</dc:creator>
      <dc:date>2016-09-09T00:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: With Color Ramp: Define which value corresponds to neutral</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/With-Color-Ramp-Define-which-value-corresponds-to-neutral/m-p/297294#M10519</link>
      <description>&lt;P&gt;The best way to do that is to use a range attrmap. If you need to change the neutral value, you can do it in the data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data attrmap;
retain id "myid";
input min $ 1-5 max $ 7-11 excludemin $ 13-17 excludemax $ 19-23 colormodel1 $ 25-29 colormodel2 $ 31-35;
cards;
_min_ 80    false true  blue  white
80    _max_ false false white red
;
run;

proc sgplot data=sashelp.class rattrmap=attrmap;
bubble x=age y=height size=age / bradiusmin=0
transparency=0.5 colorresponse=weight rattrid=myid;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Sep 2016 02:31:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/With-Color-Ramp-Define-which-value-corresponds-to-neutral/m-p/297294#M10519</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-09-09T02:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: With Color Ramp: Define which value corresponds to neutral</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/With-Color-Ramp-Define-which-value-corresponds-to-neutral/m-p/297646#M10529</link>
      <description>&lt;P&gt;That's excellent. Thank-you!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 02:33:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/With-Color-Ramp-Define-which-value-corresponds-to-neutral/m-p/297646#M10529</guid>
      <dc:creator>mduarte</dc:creator>
      <dc:date>2016-09-12T02:33:51Z</dc:date>
    </item>
  </channel>
</rss>

