<?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: Regression Plot Matrix with insets in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Regression-Plot-Matrix-with-insets/m-p/183680#M6773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a small 3x3 with custom labels using GTL, you could build the matrix yourself.&amp;nbsp; That is what is happening in the background anyway.&amp;nbsp; Use a LAYOUT LATTICE with a 3x3 row-column layout, and insert the necessary scatter, reg and insets into the cells yourself.&amp;nbsp; Quite doable, especially for a small matrix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want ROWVARS, you can create the appropriate combinations.&amp;nbsp; The general idea is shown in this article, but you can see what needs to be done and customize to your needs.&amp;nbsp; &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2012/08/19/compact-scatter-plot-matrix/" title="http://blogs.sas.com/content/graphicallyspeaking/2012/08/19/compact-scatter-plot-matrix/"&gt; Compact Scatter Plot Matrix - Graphically Speaking&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jul 2014 14:01:41 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2014-07-24T14:01:41Z</dc:date>
    <item>
      <title>Regression Plot Matrix with insets</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Regression-Plot-Matrix-with-insets/m-p/183676#M6769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking to create a scatter plot matrix with regression lines that also displays the r-squared and p value in an inset for each graph. I have tried using proc template with scatterplotmatrix, but I can only get a pearson correlation in the inset, and no regression line. I also tried proc sgscatter, but cannot get the inset to display the statistical information I need. Does anybody have any suggestions on how I can accomplish this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;proc sgscatter data=work.query_for_stabsummarytablesfilte; &lt;/P&gt;&lt;P&gt;compare y=(FairnessIdxAvgTotal_Mean EqGiniVisibleTotal ) x=(GES1_SUM GES61_SUM COH4_SUM) &lt;/P&gt;&lt;P&gt;/ Legend=(Position=Bottom) reg=(clm nogroup) ; &lt;/P&gt;&lt;P&gt;Title "Group Variables";&lt;/P&gt;&lt;P&gt;label FairnessIdxAvgTotal_Mean="Group Fairness Idx"&lt;/P&gt;&lt;P&gt;&amp;nbsp; EqGiniVisibleTotal = "Equality Barrier Reveals"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; GES1_SUM = "GES:Unity"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; GES61_SUM = "GES:Proud"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; COH4_SUM = 'PCQ:Best Anywhere';&lt;/P&gt;&lt;P&gt;WHERE groupName = 'A' OR groupName = 'B' OR groupName = 'C' OR groupName = 'D' OR groupName = 'E';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc template;&lt;/P&gt;&lt;P&gt;define statgraph spminset;&lt;/P&gt;&lt;P&gt;begingraph;&lt;/P&gt;&lt;P&gt;entrytitle "Group TPT Metrics and Cohesion";&lt;/P&gt;&lt;P&gt;entrytitle 'Concordia 2013';&lt;/P&gt;&lt;P&gt;layout gridded;&lt;/P&gt;&lt;P&gt;scatterplotmatrix GES1_SUM GES61_SUM COH4_SUM/&lt;/P&gt;&lt;P&gt;&amp;nbsp; rowvars=(FairnessIdxAvgTotal_Mean EqGiniVisibleTotal)&lt;/P&gt;&lt;P&gt;&amp;nbsp; inset=(nobs pearson pearsonpval)&lt;/P&gt;&lt;P&gt;&amp;nbsp; insetopts=( border=true opaque = true)&lt;/P&gt;&lt;P&gt;&amp;nbsp; corropts=(nomiss=true vardef=df)&lt;/P&gt;&lt;P&gt;&amp;nbsp; markerattrs=(size=4px)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ellipse=(alpha=.20 type=predicted);&lt;/P&gt;&lt;P&gt;endlayout;&lt;/P&gt;&lt;P&gt;endgraph;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc sgrender data=work.query_for_stabsummarytablesfilte template=spminset;&lt;/P&gt;&lt;P&gt;WHERE groupName = 'A' OR groupName = 'B' OR groupName = 'C' OR groupName = 'D' OR groupName = 'E';&lt;/P&gt;&lt;P&gt;label FairnessIdxAvgTotal_Mean ="Group Fairness Idx"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; EqGiniVisibleTotal = "Equality Barrier Reveals"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; GES1_SUM = "GES:Unity"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; GES61_SUM = "GES:Proud"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; COH4_SUM = 'PCQ:Best Anywhere' ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods graphics off;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 17:06:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Regression-Plot-Matrix-with-insets/m-p/183676#M6769</guid>
      <dc:creator>cyanezIBR</dc:creator>
      <dc:date>2014-07-17T17:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Regression Plot Matrix with insets</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Regression-Plot-Matrix-with-insets/m-p/183677#M6770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's an example of the reg line using sgscatter, not sure about the inset part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/48/465.html" title="http://support.sas.com/kb/48/465.html"&gt;48465 - Use an attribute map with the SGSCATTER procedure&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 17:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Regression-Plot-Matrix-with-insets/m-p/183677#M6770</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-07-17T17:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Regression Plot Matrix with insets</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Regression-Plot-Matrix-with-insets/m-p/183678#M6771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, i was able to use SGSCATTER to create the graphs, however I'd like to have p-value and r-squared listed for each plot. It seems that SGSCATTER has no options for this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 16:34:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Regression-Plot-Matrix-with-insets/m-p/183678#M6771</guid>
      <dc:creator>cyanezIBR</dc:creator>
      <dc:date>2014-07-18T16:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regression Plot Matrix with insets</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Regression-Plot-Matrix-with-insets/m-p/183679#M6772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the values are calculated outside, put them into macro variable and use a legend. Ive done similar for pvalues using the legend examples below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;legenditem type=marker name="PValue" / LABEL="Log rank test: p=&amp;amp;PValue" lineattrs=GraphData1(color=black THICKNESS=10) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; labelattrs=(size=8 family="Arial") markerattrs=(size=0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;discretelegend "PValue" / titleattrs=(size=9 family="Arial") &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BORDER=false across=1 location=inside&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; halign=left valign=bottom pad=(bottom=35);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 12:14:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Regression-Plot-Matrix-with-insets/m-p/183679#M6772</guid>
      <dc:creator>Adie_efc</dc:creator>
      <dc:date>2014-07-23T12:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Regression Plot Matrix with insets</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Regression-Plot-Matrix-with-insets/m-p/183680#M6773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a small 3x3 with custom labels using GTL, you could build the matrix yourself.&amp;nbsp; That is what is happening in the background anyway.&amp;nbsp; Use a LAYOUT LATTICE with a 3x3 row-column layout, and insert the necessary scatter, reg and insets into the cells yourself.&amp;nbsp; Quite doable, especially for a small matrix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want ROWVARS, you can create the appropriate combinations.&amp;nbsp; The general idea is shown in this article, but you can see what needs to be done and customize to your needs.&amp;nbsp; &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2012/08/19/compact-scatter-plot-matrix/" title="http://blogs.sas.com/content/graphicallyspeaking/2012/08/19/compact-scatter-plot-matrix/"&gt; Compact Scatter Plot Matrix - Graphically Speaking&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 14:01:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Regression-Plot-Matrix-with-insets/m-p/183680#M6773</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2014-07-24T14:01:41Z</dc:date>
    </item>
  </channel>
</rss>

