<?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: Quadrant graph in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Quadrant-graph/m-p/386224#M13247</link>
    <description>&lt;P&gt;No. I would like something similar to the image from here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.prescientdigital.com/articles/intranet-articles/the-big-deal-about-portals" target="_blank"&gt;http://www.prescientdigital.com/articles/intranet-articles/the-big-deal-about-portals&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Aug 2017 12:10:29 GMT</pubDate>
    <dc:creator>viollete</dc:creator>
    <dc:date>2017-08-08T12:10:29Z</dc:date>
    <item>
      <title>Quadrant graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Quadrant-graph/m-p/377225#M13016</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to draw a simple quadrant graph in SAS. The example of the data is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hospital_name &amp;nbsp;death_rate_2013 diff_compare_with_2015&lt;/P&gt;
&lt;P&gt;AA1 &amp;nbsp;1.2 &amp;nbsp;-0.5&lt;/P&gt;
&lt;P&gt;AA2 &amp;nbsp;1.5 &amp;nbsp; 0.1&lt;/P&gt;
&lt;P&gt;AA3 &amp;nbsp;0.8 &amp;nbsp; 0&lt;/P&gt;
&lt;P&gt;AA4 &amp;nbsp;1.0 &amp;nbsp;-0.4&lt;/P&gt;
&lt;P&gt;AA5 &amp;nbsp;1.9 &amp;nbsp; 0.4&lt;/P&gt;
&lt;P&gt;AA6 &amp;nbsp;1.4 &amp;nbsp; 0.1&lt;/P&gt;
&lt;P&gt;AA7 &amp;nbsp;0.5 &amp;nbsp;-0.2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want the horizontal axis be: Low death rate (on the left) and high death rate (on the right)&lt;/P&gt;
&lt;P&gt;Vertical axis: Low reduction (bottom) and high reduction (top)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And in the graph to show where each hospital is placed. How can I do it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 10:23:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Quadrant-graph/m-p/377225#M13016</guid>
      <dc:creator>viollete</dc:creator>
      <dc:date>2017-07-19T10:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Quadrant graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Quadrant-graph/m-p/377279#M13017</link>
      <description>&lt;P&gt;It sounds like you want a basic scatter plot with markers labeled by the hospital name:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
input Hospital_name $3. death_rate_2013 diff_compare_with_2015;
datalines;
AA1  1.2  -0.5
AA2  1.5   0.1
AA3  0.8   0
AA4  1.0  -0.4
AA5  1.9   0.4
AA6  1.4   0.1
AA7  0.5  -0.2
;

proc sgplot data=Have;
scatter x=death_rate_2013 y=diff_compare_with_2015 / datalabel=Hospital_name;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For more about creating simple graphs in SAS, &lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n0yjdd910dh59zn1toodgupaj4v9.htm" target="_self"&gt;see the SGPLOT documentation.&lt;/A&gt;&amp;nbsp;Click the link for the SCATTER statement to learn more about options that are available for scatter plots.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 12:32:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Quadrant-graph/m-p/377279#M13017</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-07-19T12:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Quadrant graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Quadrant-graph/m-p/386224#M13247</link>
      <description>&lt;P&gt;No. I would like something similar to the image from here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.prescientdigital.com/articles/intranet-articles/the-big-deal-about-portals" target="_blank"&gt;http://www.prescientdigital.com/articles/intranet-articles/the-big-deal-about-portals&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 12:10:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Quadrant-graph/m-p/386224#M13247</guid>
      <dc:creator>viollete</dc:creator>
      <dc:date>2017-08-08T12:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Quadrant graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Quadrant-graph/m-p/386225#M13248</link>
      <description>&lt;P&gt;It is not clear what features of that graph are important, but try the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
input Hospital_name $3. death_rate_2013 diff_compare_with_2015;
datalines;
AA1  1.2  -0.5
AA2  1.5   0.1
AA3  0.8   0
AA4  1.0  -0.4
AA5  1.9   0.4
AA6  1.4   0.1
AA7  0.5  -0.2
;

proc means data=Have mean;
var death_rate_2013;    /* use mean value for reference line */
run;

proc sgplot data=Have noborder;
text x=death_rate_2013 y=diff_compare_with_2015 text=Hospital_name;
refline 1.1857143  / axis=x;   /* use mean value (?) */
refline 0 / axis=y;
xaxis display=(noline noticks novalues);
yaxis display=(noline noticks novalues);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Aug 2017 12:19:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Quadrant-graph/m-p/386225#M13248</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-08-08T12:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Quadrant graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Quadrant-graph/m-p/387711#M13287</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just one more question. I would like to make more like this (would like to ut labels into the graph):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/24/927.html" target="_blank"&gt;http://support.sas.com/kb/24/927.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 09:59:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Quadrant-graph/m-p/387711#M13287</guid>
      <dc:creator>viollete</dc:creator>
      <dc:date>2017-08-14T09:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Quadrant graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Quadrant-graph/m-p/387787#M13288</link>
      <description>&lt;P&gt;I'm assuming your talking about the quandrant labels. The easiest way for you to do that is to use INSET statements. To see how this would work, take the code Rick provided and add the following to the SGPLOT procedure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;inset "TopLeft" / position=topleft;&lt;/P&gt;
&lt;P&gt;inset "Top" / position=top;&lt;/P&gt;
&lt;P&gt;inset "TopRight" / position=topright;&lt;/P&gt;
&lt;P&gt;inset "Right" / position=right;&lt;/P&gt;
&lt;P&gt;inset "BottomRight" / position=bottomright;&lt;/P&gt;
&lt;P&gt;inset "Bottom" / position=bottom;&lt;/P&gt;
&lt;P&gt;inset "BottomLeft" / position=Bottomleft;&lt;/P&gt;
&lt;P&gt;inset "Left" / position=left;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want the text split onto multiple lines, just break the text using multiple quoted strings:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;inset "Bottom" "Right" / position=bottomright;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 14:35:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Quadrant-graph/m-p/387787#M13288</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2017-08-14T14:35:34Z</dc:date>
    </item>
  </channel>
</rss>

