<?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: Create scatter plot with quadrants in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Create-scatter-plot-with-quadrants/m-p/362664#M12625</link>
    <description>&lt;P&gt;1. What version of SAS?&lt;/P&gt;
&lt;P&gt;2. What SAS interface? (Enterprise Guide? SAS Studio? SAS University Edition?)&lt;/P&gt;
&lt;P&gt;3. Can you run &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_rreg_gettingstarted01.htm" target="_self"&gt;the Getting Started example &lt;/A&gt;in the ROBUSTREG documentation? &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 May 2017 10:26:46 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-05-30T10:26:46Z</dc:date>
    <item>
      <title>Create scatter plot with quadrants</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Create-scatter-plot-with-quadrants/m-p/362516#M12618</link>
      <description>&lt;P&gt;Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a visual aid for my data in order to help me understand outliers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would like to do is compare values obtained from a survey with values from other sources to see if there is a mismatch and where.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking of creating a scatter plot and divding it into four sectors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My X-axis would be survey values and Y would be Other values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore the top left would be low survey value high other value, top right high survey value, high admin value and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've seen such an example for proc gplot bubble graph but I can't seem to replicate it for a scatter graph. Could anyone provide some assitance please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is some sample data for people to look at.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sample;                                                                                                                          
   input id $ 2. survey other;                                                                                                 
   datalines;                                                                                                                           
01     15000 65000                                                                                                        
02 6500     6500                                                                                                       
03   8426 10000                                                                                                      
04      1650   16805                                                                                                       
05 630               1500                                                                                         
06  110055           56812                                                                                            
07     24568           15200                                                                                             
08   6000  7800                                                                                                        
;                                                                                                                                       
run;     &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 May 2017 15:01:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Create-scatter-plot-with-quadrants/m-p/362516#M12618</guid>
      <dc:creator>Sean_OConnor</dc:creator>
      <dc:date>2017-05-29T15:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create scatter plot with quadrants</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Create-scatter-plot-with-quadrants/m-p/362555#M12619</link>
      <description>&lt;P&gt;You don't mention how you intend to determine the cutoff values, but if you are looking at a regression context, you can &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_rreg_details31.htm" target="_self"&gt;look at the ROBUSTREG procedure&lt;/A&gt;, which automatically detects points of high-leverage and outliers. See the doc for the robust distance plot, which you can create as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc robustreg data=sample method=MM plots(only)=rdplot;
model other =survey;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you have your own method, you can use the REFLINE statement to add vertical and horizontal lines to your scatter plot:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sample;
scatter x=survey y=other;
refline 22400 / axis=x;
refline 20000 / axis=y;
run; 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 20:13:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Create-scatter-plot-with-quadrants/m-p/362555#M12619</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-05-29T20:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create scatter plot with quadrants</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Create-scatter-plot-with-quadrants/m-p/362658#M12624</link>
      <description>&lt;P&gt;Rick when I try to run the following command I get the following error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
22         proc robustreg data=varsofimport method=MM plots(only)=rdplot;
ERROR: Library COMMON does not exist.
ERROR: Library COMMON does not exist.
WARNING: Unable to load prototypes from 'common.funcs'.
23         model nat_totinc =nat_totinc_admin;
24         run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 May 2017 09:52:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Create-scatter-plot-with-quadrants/m-p/362658#M12624</guid>
      <dc:creator>Sean_OConnor</dc:creator>
      <dc:date>2017-05-30T09:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create scatter plot with quadrants</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Create-scatter-plot-with-quadrants/m-p/362664#M12625</link>
      <description>&lt;P&gt;1. What version of SAS?&lt;/P&gt;
&lt;P&gt;2. What SAS interface? (Enterprise Guide? SAS Studio? SAS University Edition?)&lt;/P&gt;
&lt;P&gt;3. Can you run &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_rreg_gettingstarted01.htm" target="_self"&gt;the Getting Started example &lt;/A&gt;in the ROBUSTREG documentation? &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 10:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Create-scatter-plot-with-quadrants/m-p/362664#M12625</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-05-30T10:26:46Z</dc:date>
    </item>
  </channel>
</rss>

