<?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 Is REFERENCELINE valid with PROC SGRENDER? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Is-REFERENCELINE-valid-with-PROC-SGRENDER/m-p/434209#M14997</link>
    <description>&lt;P&gt;I have a scatterplot that needs a diagonal reference line (from 1,1&amp;nbsp;to MAXx,MAXy). &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My proc template:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define statgraph XXXX;
begingraph ;

layout overlay / 
xaxisopts = (label='x-axis label' labelattrs=(family="Courier New" size=8pt weight=bold) tickvalueattrs=(family="Courier New" size=8pt weight=bold) linearopts = (tickvaluesequence = (start = 1 end = 10 increment = 1) 
viewmin = 1 viewmax = 10))
yaxisopts = (label="y-axis label" tickvalueattrs=(family="Courier New" size=8pt weight=bold) linearopts = (tickvaluesequence = (start = -10 end = 15 increment = 5) viewmin = -10 viewmax = 15));

entry halign=left ' ' / valign=top
textattrs=(family="Courier New" size=8pt weight=bold);
&amp;nbsp;
scatterplot x = pwk1 y = awk1 / markerattrs = (color=red symbol=circlefilled size=5) name="trt1" legendlabel="Avelumab";
scatterplot x = pwk2 y = awk2 / markerattrs = (color=blue symbol=circlefilled size=5) name="trt2" legendlabel="Avelumab + PLD";
scatterplot x = pwk3 y = awk3 / markerattrs = (color=green symbol=circlefilled size=5) name="trt3" legendlabel="PLD";
&lt;BR /&gt;discretelegend "trt1" "trt2" "trt3"/ across=1 valueattrs=(family="Courier New" size=8pt weight=bold)
valign=bottom halign=center location=outside;
&amp;nbsp;
endlayout;

endgraph;
end;
run;&lt;BR /&gt;&lt;BR /&gt;proc sgrender data=final template = xxxx; &lt;BR /&gt;run; &lt;BR /&gt;quit; &lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I use REFERENCELINE? &amp;nbsp;I've tried, but not sure if I'm not doing it correctly, or if it's not possible to use this statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;VCM&lt;/P&gt;</description>
    <pubDate>Mon, 05 Feb 2018 15:49:46 GMT</pubDate>
    <dc:creator>VCM</dc:creator>
    <dc:date>2018-02-05T15:49:46Z</dc:date>
    <item>
      <title>Is REFERENCELINE valid with PROC SGRENDER?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-REFERENCELINE-valid-with-PROC-SGRENDER/m-p/434209#M14997</link>
      <description>&lt;P&gt;I have a scatterplot that needs a diagonal reference line (from 1,1&amp;nbsp;to MAXx,MAXy). &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My proc template:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define statgraph XXXX;
begingraph ;

layout overlay / 
xaxisopts = (label='x-axis label' labelattrs=(family="Courier New" size=8pt weight=bold) tickvalueattrs=(family="Courier New" size=8pt weight=bold) linearopts = (tickvaluesequence = (start = 1 end = 10 increment = 1) 
viewmin = 1 viewmax = 10))
yaxisopts = (label="y-axis label" tickvalueattrs=(family="Courier New" size=8pt weight=bold) linearopts = (tickvaluesequence = (start = -10 end = 15 increment = 5) viewmin = -10 viewmax = 15));

entry halign=left ' ' / valign=top
textattrs=(family="Courier New" size=8pt weight=bold);
&amp;nbsp;
scatterplot x = pwk1 y = awk1 / markerattrs = (color=red symbol=circlefilled size=5) name="trt1" legendlabel="Avelumab";
scatterplot x = pwk2 y = awk2 / markerattrs = (color=blue symbol=circlefilled size=5) name="trt2" legendlabel="Avelumab + PLD";
scatterplot x = pwk3 y = awk3 / markerattrs = (color=green symbol=circlefilled size=5) name="trt3" legendlabel="PLD";
&lt;BR /&gt;discretelegend "trt1" "trt2" "trt3"/ across=1 valueattrs=(family="Courier New" size=8pt weight=bold)
valign=bottom halign=center location=outside;
&amp;nbsp;
endlayout;

endgraph;
end;
run;&lt;BR /&gt;&lt;BR /&gt;proc sgrender data=final template = xxxx; &lt;BR /&gt;run; &lt;BR /&gt;quit; &lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I use REFERENCELINE? &amp;nbsp;I've tried, but not sure if I'm not doing it correctly, or if it's not possible to use this statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;VCM&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 15:49:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-REFERENCELINE-valid-with-PROC-SGRENDER/m-p/434209#M14997</guid>
      <dc:creator>VCM</dc:creator>
      <dc:date>2018-02-05T15:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is REFERENCELINE valid with PROC SGRENDER?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-REFERENCELINE-valid-with-PROC-SGRENDER/m-p/434212#M14998</link>
      <description>&lt;P&gt;Use the LINEPARM statement.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 15:51:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-REFERENCELINE-valid-with-PROC-SGRENDER/m-p/434212#M14998</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2018-02-05T15:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is REFERENCELINE valid with PROC SGRENDER?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-REFERENCELINE-valid-with-PROC-SGRENDER/m-p/434213#M14999</link>
      <description>&lt;P&gt;I have used lineparm when I need a diagonal reference line.&amp;nbsp; Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  define statgraph Stat.MDS.Graphics.Fit;
      notes "MDS Fit Plot";
      dynamic head;
      begingraph / designwidth=defaultdesignheight;
         entrytitle head;
         layout overlayequated / equatetype=square ;
            scatterplot y = FitData x = FitDist / markerattrs=(size=5px);
            lineparm slope=1 x=0 y=0 / clip=true extend=true lineattrs=graphReference;
            endlayout;
         dynamic _byline_ _bytitle_ _byfootnote_;
         if (_bytitle_) entrytitle _byline_ / textattrs=GraphValueText;
         else if (_byfootnote_) entryfootnote halign=left _byline_;
         endif; endif;
         endgraph;
      end;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Feb 2018 15:51:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-REFERENCELINE-valid-with-PROC-SGRENDER/m-p/434213#M14999</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2018-02-05T15:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is REFERENCELINE valid with PROC SGRENDER?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-REFERENCELINE-valid-with-PROC-SGRENDER/m-p/434216#M15000</link>
      <description>Brilliant, worked perfectly! Thank you so much! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Mon, 05 Feb 2018 15:55:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-REFERENCELINE-valid-with-PROC-SGRENDER/m-p/434216#M15000</guid>
      <dc:creator>VCM</dc:creator>
      <dc:date>2018-02-05T15:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is REFERENCELINE valid with PROC SGRENDER?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-REFERENCELINE-valid-with-PROC-SGRENDER/m-p/434217#M15001</link>
      <description>&lt;P&gt;You should but it is a separate plot not part of scatterplot.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token keyword"&gt;scatterplot&lt;/SPAN&gt; x &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; pwk1 y &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; awk1 &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; markerattrs &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;color&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;red &lt;SPAN class="token statement"&gt;symbol&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;circlefilled size&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;5&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; name&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"trt1"&lt;/SPAN&gt; legendlabel&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"Avelumab"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="token keyword"&gt;scatterplot&lt;/SPAN&gt; x &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; pwk2 y &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; awk2 &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; markerattrs &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;color&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;blue &lt;SPAN class="token statement"&gt;symbol&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;circlefilled size&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;5&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; name&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"trt2"&lt;/SPAN&gt; legendlabel&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"Avelumab + PLD"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="token keyword"&gt;scatterplot&lt;/SPAN&gt; x &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; pwk3 y &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; awk3 &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; markerattrs &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;color&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;green &lt;SPAN class="token statement"&gt;symbol&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;circlefilled size&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;5&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; name&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"trt3"&lt;/SPAN&gt; legendlabel&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"PLD"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: rgb(252, 222, 192);"&gt;referenceline&lt;/FONT&gt; x= 5 / lineattrs=(thickness=3);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;should place a vertical reference line at the value 5 on your horizontal axis (assuming 5 is in range) and would be a thickish line&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that does not work show the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 15:55:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-REFERENCELINE-valid-with-PROC-SGRENDER/m-p/434217#M15001</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-02-05T15:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is REFERENCELINE valid with PROC SGRENDER?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-REFERENCELINE-valid-with-PROC-SGRENDER/m-p/434218#M15002</link>
      <description>That was the ticket, thank you so much! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Mon, 05 Feb 2018 15:55:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-REFERENCELINE-valid-with-PROC-SGRENDER/m-p/434218#M15002</guid>
      <dc:creator>VCM</dc:creator>
      <dc:date>2018-02-05T15:55:57Z</dc:date>
    </item>
  </channel>
</rss>

