<?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 generate color between xerrorlower to xerrorupper in scatterplot(proc template) in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/how-generate-color-between-xerrorlower-to-xerrorupper-in/m-p/831066#M23116</link>
    <description>&lt;P&gt;You can use the COLORRESPONSE= option on the SCATTER statement to color the markers and bars according to some variable in your data set. In the following, I color by using the mean value:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data confidence;
input Var $ 1-2 Mean  LowerCI UpperCI;
datalines;
X1      1.2     0.1     4.2
X2      1.2     0.1     4.2
X3      50.0    48.7    60.3
X4      6.0     5.0     7.3
X5      6.1     5.0     7.3
X6      16.7    0.4     64.1
X7      66.4    55.2    69.6
;

proc sgplot data=confidence;
  scatter y=Var x=mean / xerrorupper=upperci xerrorlower=lowerci colorresponse=mean
          markerattrs=(symbol=CircleFilled) errorbarattrs=(thickness=2);
  yaxis grid;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 30 Aug 2022 11:08:42 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2022-08-30T11:08:42Z</dc:date>
    <item>
      <title>how generate color between xerrorlower to xerrorupper in scatterplot(proc template)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-generate-color-between-xerrorlower-to-xerrorupper-in/m-p/831057#M23115</link>
      <description>&lt;P&gt;I am generating scatter plot with xerrorlower and yerrorlower (ranges) . How to fill up with color low to high .&lt;/P&gt;
&lt;P&gt;Note: first line (range) is base for remaining records.&lt;BR /&gt;For you reference I am attaching one photo.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph_photo.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74847iEB222000F48A9171/image-size/medium?v=v2&amp;amp;px=400" role="button" title="graph_photo.png" alt="graph_photo.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 10:03:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-generate-color-between-xerrorlower-to-xerrorupper-in/m-p/831057#M23115</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2022-08-30T10:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: how generate color between xerrorlower to xerrorupper in scatterplot(proc template)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-generate-color-between-xerrorlower-to-xerrorupper-in/m-p/831066#M23116</link>
      <description>&lt;P&gt;You can use the COLORRESPONSE= option on the SCATTER statement to color the markers and bars according to some variable in your data set. In the following, I color by using the mean value:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data confidence;
input Var $ 1-2 Mean  LowerCI UpperCI;
datalines;
X1      1.2     0.1     4.2
X2      1.2     0.1     4.2
X3      50.0    48.7    60.3
X4      6.0     5.0     7.3
X5      6.1     5.0     7.3
X6      16.7    0.4     64.1
X7      66.4    55.2    69.6
;

proc sgplot data=confidence;
  scatter y=Var x=mean / xerrorupper=upperci xerrorlower=lowerci colorresponse=mean
          markerattrs=(symbol=CircleFilled) errorbarattrs=(thickness=2);
  yaxis grid;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Aug 2022 11:08:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-generate-color-between-xerrorlower-to-xerrorupper-in/m-p/831066#M23116</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-08-30T11:08:42Z</dc:date>
    </item>
  </channel>
</rss>

