<?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 color between 2 reference lines in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-color-between-2-reference-lines/m-p/917131#M361266</link>
    <description>&lt;P&gt;As KSharp shows, use the BLOCK statement. In addition to the example he provides, see&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2016/11/21/forecast-regions.html" target="_blank"&gt;Highlight forecast regions in graphs - The DO Loop (sas.com)&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2024 11:17:35 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2024-02-21T11:17:35Z</dc:date>
    <item>
      <title>PROC SGPLOT color between 2 reference lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-color-between-2-reference-lines/m-p/917070#M361238</link>
      <description>&lt;P&gt;I would like to add a vertical color band between 2 reference lines.&amp;nbsp; A code is attached below.&amp;nbsp; Basically I would like the area between X=40 and X=50 to be shaded with some transparency.&amp;nbsp; I tried REFLINE but there doesn't seem to be an option to color the area between them.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc sgplot data=sashelp.Heart;
   Scatter X=AgeAtstart Y=Cholesterol;
   refline 40 50 / axis=x lineattrs=(thickness=3 color=darkred pattern=dash)
                     label=("Borderline"  "High"); 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 02:35:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-color-between-2-reference-lines/m-p/917070#M361238</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2024-02-21T02:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT color between 2 reference lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-color-between-2-reference-lines/m-p/917089#M361248</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc sgplot data= sashelp.Heart;
   band y=Cholesterol lower=40 upper=50/transparency=0.6;

   Scatter X=AgeAtstart Y=Cholesterol;
   refline 40 50 / axis=x lineattrs=(thickness=3 color=darkred pattern=dash)
                     label=("Borderline"  "High"); 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1708494354282.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93953i070048E36C2B6390/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1708494354282.png" alt="Ksharp_0-1708494354282.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 05:46:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-color-between-2-reference-lines/m-p/917089#M361248</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-02-21T05:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT color between 2 reference lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-color-between-2-reference-lines/m-p/917131#M361266</link>
      <description>&lt;P&gt;As KSharp shows, use the BLOCK statement. In addition to the example he provides, see&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2016/11/21/forecast-regions.html" target="_blank"&gt;Highlight forecast regions in graphs - The DO Loop (sas.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 11:17:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-color-between-2-reference-lines/m-p/917131#M361266</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2024-02-21T11:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT color between 2 reference lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-color-between-2-reference-lines/m-p/917188#M361290</link>
      <description>&lt;P&gt;Thanks so much&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;!!!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 16:31:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-color-between-2-reference-lines/m-p/917188#M361290</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2024-02-21T16:31:24Z</dc:date>
    </item>
  </channel>
</rss>

