<?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: Adding empty cells in SGPANEL in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483742#M16681</link>
    <description>&lt;P&gt;I didn't show code because I am really looking for a generic solution.&amp;nbsp; And while DATALATTICE or DATAPANEL might work, they require the classification variables to be the same across cells.&amp;nbsp; The overwhelming majority of graphs I build consist of independent cells&amp;nbsp;and unfortunately those layouts will not work in that circumstance.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Aug 2018 11:58:37 GMT</pubDate>
    <dc:creator>jimhorne</dc:creator>
    <dc:date>2018-08-03T11:58:37Z</dc:date>
    <item>
      <title>Adding empty cells in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483415#M16672</link>
      <description>&lt;P&gt;I have a 3x3 Layout Lattice graph but I only have 7 graphs I produce for it.&amp;nbsp; How can I make the only graph on the third row appear on the right or in the center instead of on the left as it will normally?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 14:32:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483415#M16672</guid>
      <dc:creator>jimhorne</dc:creator>
      <dc:date>2018-08-02T14:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Adding empty cells in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483439#M16673</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45860"&gt;@jimhorne&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have a 3x3 Layout Lattice graph but I only have 7 graphs I produce for it.&amp;nbsp; How can I make the only graph on the third row appear on the right or in the center instead of on the left as it will normally?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It would help to show the code you are currently using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To control that kind of order you may want to investigate LAYOUT DATALATTICE or DATAPANEL&amp;nbsp;where the row/column positions are controlled by the values of one or two classification variables.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 15:08:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483439#M16673</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-02T15:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding empty cells in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483595#M16677</link>
      <description>&lt;P&gt;Here is one way to do it using the SPARSE option on the PANELBY statement, which will render cells that contain no observations:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Your data */
data example;
do p = 1 to 7;
   do x=1 to 10;
      y=ranuni(123);
      output;
   end;
end;

/* Add something that will sort */
/* before the last cell. */
data movecell;
set example end=eof;
output;
if eof then do;
  p=6.5;
  x=.;
  y=.;
  output;
end;

/* Clear the header */
proc format;
  value clear 6.5=" ";
run;

proc sgpanel data=movecell;
format p clear.;
panelby p / sparse columns=3 onepanel novarname;
scatter x=x y=y;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Aug 2018 21:12:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483595#M16677</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-08-02T21:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding empty cells in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483741#M16680</link>
      <description>&lt;P&gt;Thanks Dan.&amp;nbsp; That is an elegant solution to the question I asked.&amp;nbsp; It also points out to me that I really asked the wrong question because what I really need is how to do it in GTL not in SGPANEL.&amp;nbsp; Unfortunately for my peace of mind that is not the question I meant to ask.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 11:55:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483741#M16680</guid>
      <dc:creator>jimhorne</dc:creator>
      <dc:date>2018-08-03T11:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Adding empty cells in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483742#M16681</link>
      <description>&lt;P&gt;I didn't show code because I am really looking for a generic solution.&amp;nbsp; And while DATALATTICE or DATAPANEL might work, they require the classification variables to be the same across cells.&amp;nbsp; The overwhelming majority of graphs I build consist of independent cells&amp;nbsp;and unfortunately those layouts will not work in that circumstance.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 11:58:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483742#M16681</guid>
      <dc:creator>jimhorne</dc:creator>
      <dc:date>2018-08-03T11:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding empty cells in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483793#M16682</link>
      <description>&lt;P&gt;Unlitmately, the SGPANEL is using the DATAPANEL or DATALATTICE layouts of GTL, so this solution would work there as well.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 14:28:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483793#M16682</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-08-03T14:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Adding empty cells in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483794#M16683</link>
      <description>&lt;P&gt;So it sounds as if there is not a good way to insert empty cells if each cell is independent of the others, but only if they share common classification variables.&amp;nbsp; While it's not the answer I wanted it's good to know.&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 14:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483794#M16683</guid>
      <dc:creator>jimhorne</dc:creator>
      <dc:date>2018-08-03T14:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adding empty cells in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483795#M16684</link>
      <description>&lt;P&gt;In GTL, you can use a LATTICE layout for independent plots, but a DATALATTICE is for classification variables. Sound like you really want a LATTICE, which would require you to use GTL.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 14:41:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483795#M16684</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-08-03T14:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding empty cells in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483809#M16685</link>
      <description>&lt;P&gt;And LAYOUT LATTICE is what I use today.&amp;nbsp; I was just hoping for a way in it where I could control the position of blank cells instead of having it done for me.&amp;nbsp; Sometimes I would like to group cells different than the default orfer.&amp;nbsp; It's only an issue for me when I have rows with not enough cells to fill them up.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 15:06:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483809#M16685</guid>
      <dc:creator>jimhorne</dc:creator>
      <dc:date>2018-08-03T15:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Adding empty cells in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483858#M16686</link>
      <description>&lt;P&gt;The way you do that in GTL with a LAYOUT LATTICE is to put a blank ENTRY in the cell. Here is a simple example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define statgraph layout_test;
begingraph;
layout lattice / columns=3;
layout overlay;
   barchart x=age y=weight / stat=mean;
endlayout;
entry " ";
layout overlay;
   barchart x=age y=height / stat=mean;
endlayout;
endlayout;
endgraph;
end;
run;

proc sgrender data=sashelp.class template=layout_test;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Aug 2018 16:42:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-empty-cells-in-SGPANEL/m-p/483858#M16686</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-08-03T16:42:02Z</dc:date>
    </item>
  </channel>
</rss>

