<?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: Change inset location on PROC CORR in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Change-inset-location-on-PROC-CORR/m-p/499513#M17029</link>
    <description>&lt;P&gt;Ahh. Thanks - this worked!&lt;/P&gt;</description>
    <pubDate>Thu, 27 Sep 2018 13:42:08 GMT</pubDate>
    <dc:creator>cbt2119</dc:creator>
    <dc:date>2018-09-27T13:42:08Z</dc:date>
    <item>
      <title>Change inset location on PROC CORR</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Change-inset-location-on-PROC-CORR/m-p/499267#M17025</link>
      <description>&lt;P&gt;Hi SAS Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to create a scatter plot of the correlation between two variables: agestartm and pcrCT. I've been googling and searching for a way to change the inset location on the plot, but haven't found any solutions. Does anyone have a way to do this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached my code and graph for reference.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
proc corr data=mydata nomiss
	plots=scatter(alpha=.05);
	var agestartm pcrct;
	run;
ods graphics off;
	&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ScatterPlot.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23584i611A6E57D2391BA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="ScatterPlot.png" alt="ScatterPlot.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Cara&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 21:00:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Change-inset-location-on-PROC-CORR/m-p/499267#M17025</guid>
      <dc:creator>cbt2119</dc:creator>
      <dc:date>2018-09-26T21:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change inset location on PROC CORR</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Change-inset-location-on-PROC-CORR/m-p/499333#M17026</link>
      <description>&lt;P&gt;When the automatically produced ODS graphics look like you want, they are a big time saver. When they don't look like you want and the procedure does not support the option to tweak the graph, it is often easiest to use PROC SGPLOT to make the changes that you need. This avoids having to mess with templates, which are powerful but have a learning curve associated with them. To put the inset in the position you want,&amp;nbsp;use the INSET statement with the POSTITION= option:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* original plot */
proc corr data=sashelp.cars nomiss plots=scatter(alpha=.05);
	var weight wheelbase;
run;

/* create same plot "by hand" */
title "Scatter Plot";
title2 "With 95% Prediction Ellipses";
proc sgplot data=sashelp.cars;
   scatter x=Weight y=Wheelbase;
   ellipse x=Weight y=Wheelbase;
   /* use INSET stmt to put the inset anywhere you want */
   inset ("Observations" = "428"
          "Correlation" = "0.7607"
          "p-Value" = "&amp;lt;.0001") / border position=SE;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Sep 2018 00:45:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Change-inset-location-on-PROC-CORR/m-p/499333#M17026</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-09-27T00:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change inset location on PROC CORR</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Change-inset-location-on-PROC-CORR/m-p/499513#M17029</link>
      <description>&lt;P&gt;Ahh. Thanks - this worked!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 13:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Change-inset-location-on-PROC-CORR/m-p/499513#M17029</guid>
      <dc:creator>cbt2119</dc:creator>
      <dc:date>2018-09-27T13:42:08Z</dc:date>
    </item>
  </channel>
</rss>

