<?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: Different color for different reference line with different variable values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Different-color-for-different-reference-line-with-different/m-p/810891#M319788</link>
    <description>&lt;P&gt;See if this example is helpful:&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;
scatter x=height y=weight;
refline  75 / axis=Y lineattrs=(color=blue) label;
refline 100 / axis=Y lineattrs=(color=gold) label;
refline 125 / axis=Y lineattrs=(color=red)  label;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 01 May 2022 10:38:15 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2022-05-01T10:38:15Z</dc:date>
    <item>
      <title>Different color for different reference line with different variable values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Different-color-for-different-reference-line-with-different/m-p/810829#M319768</link>
      <description>&lt;P&gt;Hi All. I and creating a figure. I need to show different color for different reference line with continuous variable values.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 17:28:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Different-color-for-different-reference-line-with-different/m-p/810829#M319768</guid>
      <dc:creator>Varun</dc:creator>
      <dc:date>2022-04-30T17:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Different color for different reference line with different variable values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Different-color-for-different-reference-line-with-different/m-p/810832#M319769</link>
      <description>&lt;P&gt;Your question is too vague. Please show us the code that you have developped so far.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 18:06:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Different-color-for-different-reference-line-with-different/m-p/810832#M319769</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2022-04-30T18:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Different color for different reference line with different variable values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Different-color-for-different-reference-line-with-different/m-p/810891#M319788</link>
      <description>&lt;P&gt;See if this example is helpful:&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;
scatter x=height y=weight;
refline  75 / axis=Y lineattrs=(color=blue) label;
refline 100 / axis=Y lineattrs=(color=gold) label;
refline 125 / axis=Y lineattrs=(color=red)  label;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 May 2022 10:38:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Different-color-for-different-reference-line-with-different/m-p/810891#M319788</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-05-01T10:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Different color for different reference line with different variable values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Different-color-for-different-reference-line-with-different/m-p/810892#M319789</link>
      <description>&lt;P&gt;Make different variables for these different reference line .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
set sashelp.class;
if _n_ in(6:10) then refline1=height;
if _n_ in(12:16) then refline2=height;
run;


proc sgplot data=class;
scatter x=height y=weight/group=sex;
refline refline1/axis=x lineattrs=graphdata1;
refline refline2/axis=x lineattrs=graphdata2;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 May 2022 10:42:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Different-color-for-different-reference-line-with-different/m-p/810892#M319789</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-05-01T10:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Different color for different reference line with different variable values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Different-color-for-different-reference-line-with-different/m-p/810899#M319793</link>
      <description>&lt;P&gt;And for more ways to control and use reference lines, see &lt;A href="https://blogs.sas.com/content/iml/2020/04/13/horizontal-vertical-reference-lines-sas.html" target="_self"&gt;"Add horizontal and vertical reference lines to SAS graphs: The REFLINE statement."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 May 2022 11:15:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Different-color-for-different-reference-line-with-different/m-p/810899#M319793</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-05-01T11:15:58Z</dc:date>
    </item>
  </channel>
</rss>

