<?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 show lines splitting graph into 4 sections? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-sgplot-show-lines-splitting-graph-into-4-sections/m-p/600777#M173717</link>
    <description>&lt;P&gt;thank you this is perfect!&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2019 18:51:17 GMT</pubDate>
    <dc:creator>serrld113</dc:creator>
    <dc:date>2019-10-31T18:51:17Z</dc:date>
    <item>
      <title>proc sgplot show lines splitting graph into 4 sections?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sgplot-show-lines-splitting-graph-into-4-sections/m-p/600767#M173712</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33519i7F300D6BA6B579D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="test.png" alt="test.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hi there, Is there a way to separate my graph into 4 quadrants like in the picture? I'd want the lines to go through the 50 mark on both axis.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 18:27:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sgplot-show-lines-splitting-graph-into-4-sections/m-p/600767#M173712</guid>
      <dc:creator>serrld113</dc:creator>
      <dc:date>2019-10-31T18:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot show lines splitting graph into 4 sections?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sgplot-show-lines-splitting-graph-into-4-sections/m-p/600775#M173715</link>
      <description>&lt;P&gt;See if this gets you started. Feel free to ask&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
   do x=1 to 100;
      y=rand('integer', 0, 100);
      output;
   end;
run;

data plot;
   set have;
        if x &amp;lt;= 50 &amp;amp; y &amp;lt;= 50 then group=1;
   else if x &amp;gt;  50 &amp;amp; y &amp;lt;= 50 then group=2;
   else if x &amp;lt;= 50 &amp;amp; y &amp;gt;  50 then group=3;
   else if x &amp;gt;  50 &amp;amp; y &amp;gt;  50 then group=4;
run;

proc sgplot data=plot noautolegend;
   scatter x=x y=y / group=group markerattrs=(symbol=circlefilled size=10) colorresponse=group colormodel=(blue gold red green);
   refline 50 / axis=x lineattrs=(thickness=2 color=black);
   refline 50 / axis=y lineattrs=(thickness=2 color=black);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="SGPlot19.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33520i1BE1DD03D093B423/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot19.png" alt="SGPlot19.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 18:49:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sgplot-show-lines-splitting-graph-into-4-sections/m-p/600775#M173715</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-10-31T18:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot show lines splitting graph into 4 sections?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sgplot-show-lines-splitting-graph-into-4-sections/m-p/600777#M173717</link>
      <description>&lt;P&gt;thank you this is perfect!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 18:51:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sgplot-show-lines-splitting-graph-into-4-sections/m-p/600777#M173717</guid>
      <dc:creator>serrld113</dc:creator>
      <dc:date>2019-10-31T18:51:17Z</dc:date>
    </item>
  </channel>
</rss>

