<?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 How modify Reference line in PROC SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-modify-Reference-line-in-PROC-SGPLOT/m-p/459984#M15866</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help to modify Reference line on the graph below. The issue is the reference line extends beyond&amp;nbsp;timepoints where values of&amp;nbsp;&amp;nbsp;concentration do not exist.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20366iB38776B647801257/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The code that was used is here:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=abc; 
  where col1 = "&amp;amp;&amp;amp;sub&amp;amp;i";
    styleattrs AXISBREAK=Bracket;
    series x=col3 y=col4/ lineattrs=(pattern=solid color=blue) name="line" markers markerattrs=(symbol=circlefilled color=blue size=6);
	xaxis label='Timepoint (hrs)' type=linear values = (0 to &amp;amp;&amp;amp;xmax&amp;amp;i. by 12)  
    integer valueattrs=(size=8pt) fitpolicy = rotate integer valuesrotate=vertical;
     yaxis label='Semi-log Concentration' 
     type=log logbase=10 logstyle=linear logvtype=expanded values = (0.1 1 10) 
        THRESHOLDMin=1 THRESHOLDMAX=1;
	refline col7  /axis=y lineattrs=(color=red) name = "line1" legendlabel = "Mean X-response";
    keylegend "line" "line1" / location=inside position=topright across=1 noborder;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Do any options for refline exist to modify it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 04 May 2018 10:21:33 GMT</pubDate>
    <dc:creator>DmytroYermak</dc:creator>
    <dc:date>2018-05-04T10:21:33Z</dc:date>
    <item>
      <title>How modify Reference line in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-modify-Reference-line-in-PROC-SGPLOT/m-p/459984#M15866</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help to modify Reference line on the graph below. The issue is the reference line extends beyond&amp;nbsp;timepoints where values of&amp;nbsp;&amp;nbsp;concentration do not exist.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20366iB38776B647801257/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The code that was used is here:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=abc; 
  where col1 = "&amp;amp;&amp;amp;sub&amp;amp;i";
    styleattrs AXISBREAK=Bracket;
    series x=col3 y=col4/ lineattrs=(pattern=solid color=blue) name="line" markers markerattrs=(symbol=circlefilled color=blue size=6);
	xaxis label='Timepoint (hrs)' type=linear values = (0 to &amp;amp;&amp;amp;xmax&amp;amp;i. by 12)  
    integer valueattrs=(size=8pt) fitpolicy = rotate integer valuesrotate=vertical;
     yaxis label='Semi-log Concentration' 
     type=log logbase=10 logstyle=linear logvtype=expanded values = (0.1 1 10) 
        THRESHOLDMin=1 THRESHOLDMAX=1;
	refline col7  /axis=y lineattrs=(color=red) name = "line1" legendlabel = "Mean X-response";
    keylegend "line" "line1" / location=inside position=topright across=1 noborder;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Do any options for refline exist to modify it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 10:21:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-modify-Reference-line-in-PROC-SGPLOT/m-p/459984#M15866</guid>
      <dc:creator>DmytroYermak</dc:creator>
      <dc:date>2018-05-04T10:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: How modify Reference line in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-modify-Reference-line-in-PROC-SGPLOT/m-p/459992#M15867</link>
      <description>&lt;P&gt;As far as I am aware the refline will fill across the width or height of the axis - it is a reference line at the end of the day.&amp;nbsp; What you could do is just overlay a series plot of x=0, y=col7 and x=60, y=col7.&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 10:47:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-modify-Reference-line-in-PROC-SGPLOT/m-p/459992#M15867</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-04T10:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: How modify Reference line in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-modify-Reference-line-in-PROC-SGPLOT/m-p/459998#M15868</link>
      <description>The matter is that the timepoint "72 hours" exists with &amp;lt;null&amp;gt; value of concentration.</description>
      <pubDate>Fri, 04 May 2018 11:00:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-modify-Reference-line-in-PROC-SGPLOT/m-p/459998#M15868</guid>
      <dc:creator>DmytroYermak</dc:creator>
      <dc:date>2018-05-04T11:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: How modify Reference line in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-modify-Reference-line-in-PROC-SGPLOT/m-p/460001#M15869</link>
      <description>&lt;P&gt;Just add it to your where clause then:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;  &lt;SPAN class="token statement"&gt;where&lt;/SPAN&gt; col1 &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"&amp;amp;&amp;amp;sub&amp;amp;i" and col4 ne .&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also note, you don't need the macro looping - which I can infer from the &amp;amp;&amp;amp;sub&amp;amp;i, you can use by grouping:&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 11:08:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-modify-Reference-line-in-PROC-SGPLOT/m-p/460001#M15869</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-04T11:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: How modify Reference line in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-modify-Reference-line-in-PROC-SGPLOT/m-p/460113#M15877</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/58513"&gt;@DmytroYermak&lt;/a&gt; wrote:&lt;BR /&gt;The matter is that the timepoint "72 hours" exists with &amp;lt;null&amp;gt; value of concentration.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;?????&lt;/P&gt;
&lt;P&gt;I always get confused when people reference "null" in SAS discussions since SAS uses the term "missing".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And why no complaint about the reference line showing at x=0?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Old school solution would be create another plot series with matching x values that start and end with corresponding values of y with the refline value.&lt;/P&gt;
&lt;P&gt;Of course if the refline is changing for each level of your macro variable that could lead to some mildly entertaining code.&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 17:30:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-modify-Reference-line-in-PROC-SGPLOT/m-p/460113#M15877</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-05-04T17:30:56Z</dc:date>
    </item>
  </channel>
</rss>

