<?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: Table in PLOT using Proc Template in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Table-in-PLOT-using-Proc-Template/m-p/966594#M376184</link>
    <description>&lt;P&gt;If you provide some example data will likely have a better chance of getting a working solution.&lt;/P&gt;
&lt;P&gt;And then populate the graph with some examples for that data set. For example, since you are showing a requirement for a "change" we can't tell if the template is supposed to calculated that change, and from what.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also if this is supposed to be an axis table then generally the columns of the table correspond to the X axis values. From what you show I am not sure, because there are no values anywhere, that this is true for your want. &lt;/P&gt;</description>
    <pubDate>Thu, 15 May 2025 15:41:55 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2025-05-15T15:41:55Z</dc:date>
    <item>
      <title>Table in PLOT using Proc Template</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-in-PLOT-using-Proc-Template/m-p/966578#M376174</link>
      <description>&lt;P&gt;Hi Graph Extperts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to plot the below graph using PROC TEMPLATE.&lt;/P&gt;&lt;P&gt;So till now I have achived to plot the main body and only one table below the plot. But the problem is that I am unable to fit 2 tables under the plot as I have 6 treatments hence each table is taking 6 lines. Kindly help me. I have used below code .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define statgraph stepplot;&lt;BR /&gt;begingraph / designwidth=800px designheight=465px border=false.......&lt;/P&gt;&lt;P&gt;.......................&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;layout lattice / rows=3 columns=1 ......................;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;main plot&amp;gt;;&lt;/P&gt;&lt;P&gt;endlayout;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;layout overlay / ;&lt;/P&gt;&lt;P&gt;&amp;lt;table 1 with all required syntax &amp;gt;&lt;BR /&gt;AxisTable ..................... / poistion =0 ;&lt;BR /&gt;endlayout;&lt;/P&gt;&lt;P&gt;endgraph;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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-inline" image-alt="fig.jpg" style="width: 777px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106943iFA47726C479C02FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="fig.jpg" alt="fig.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 13:09:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-in-PLOT-using-Proc-Template/m-p/966578#M376174</guid>
      <dc:creator>sas_user_IND</dc:creator>
      <dc:date>2025-05-15T13:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Table in PLOT using Proc Template</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-in-PLOT-using-Proc-Template/m-p/966594#M376184</link>
      <description>&lt;P&gt;If you provide some example data will likely have a better chance of getting a working solution.&lt;/P&gt;
&lt;P&gt;And then populate the graph with some examples for that data set. For example, since you are showing a requirement for a "change" we can't tell if the template is supposed to calculated that change, and from what.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also if this is supposed to be an axis table then generally the columns of the table correspond to the X axis values. From what you show I am not sure, because there are no values anywhere, that this is true for your want. &lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 15:41:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-in-PLOT-using-Proc-Template/m-p/966594#M376184</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2025-05-15T15:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Table in PLOT using Proc Template</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-in-PLOT-using-Proc-Template/m-p/966661#M376196</link>
      <description>&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2012/07/15/risk-tables-annotated-or-not/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2012/07/15/risk-tables-annotated-or-not/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=sashelp.heart nway;
class smoking_status sex;
var weight;
output out=want mean=mean lclm=lclm uclm=uclm median=median n=n;
run;

ods graphics/reset=all;
proc sgplot data=want;
scatter x=smoking_status y=mean/yerrorlower=lclm yerrorupper=uclm group=sex;
/*xaxis colorbands=even;*/
xaxistable n/x=smoking_status class=sex colorgroup=sex  title='Count N';
xaxistable median/x=smoking_status class=sex colorgroup=sex  title='Median Value';

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1747362010695.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106979iA35C1E2D0EA2189E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1747362010695.png" alt="Ksharp_0-1747362010695.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 02:20:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-in-PLOT-using-Proc-Template/m-p/966661#M376196</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-05-16T02:20:20Z</dc:date>
    </item>
  </channel>
</rss>

