<?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 BY processing in SGPANEL in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/BY-processing-in-SGPANEL/m-p/547360#M17961</link>
    <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SCPANEL (SAS 9.4) to display animal interactions over a series of years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; panelby year / layout=panel columns=2 rows=3;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;statement to get all the 6 yearly graphs, and a BY statement to get animal pairs.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; by species1 species2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where species1 and species2 contain the common name of the species.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; title "Interactions between #byval(species1) and #byval(species2) ";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The procedure gives the correct display, but across BY groups it keeps the same scaling on the graphs, whereas each set of panels (for a BY group) should be rescaled for the values (number of interactions)&amp;nbsp; applicable to that species pair.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As it is, the scaling for rare species pairs are still done to the axis limits applicable to the very common species which is 100;s of times more (5,000 as max value on Y axis instead of 20 or 30 as max value on Y axis).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can partialy releave the problem &amp;nbsp; by using&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; panelby year / layout=panel columns=2 rows=3 UNISCALE=COLUMN;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but this leaves all the rows in a panel potentially scaled differently, which makes it difficult to visually compare years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some setting to make the BY processing to essentially start completely fresh within the BY group (instead of in this case) using some information (Y axix scale) across the whole dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this can't be done, I probably will need to code up a macro to do the BY processing. That is calling up PROC SGPANEL for each pair of species on the data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your thoughts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS version info (from a macro we developed)&lt;/P&gt;&lt;P&gt;NOTE: SAS version [sysvlong4] is 9.04.01M4P11092016, Site id [syssite] = 10007393&lt;BR /&gt;NOTE: Server Operating system [sysscp]:[sysscpl] is WIN:X64_SR12R2&lt;BR /&gt;NOTE: [_CLIENTAPP] Client application is SAS Studio&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2019 23:55:48 GMT</pubDate>
    <dc:creator>IanShannon</dc:creator>
    <dc:date>2019-03-29T23:55:48Z</dc:date>
    <item>
      <title>BY processing in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/BY-processing-in-SGPANEL/m-p/547360#M17961</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SCPANEL (SAS 9.4) to display animal interactions over a series of years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; panelby year / layout=panel columns=2 rows=3;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;statement to get all the 6 yearly graphs, and a BY statement to get animal pairs.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; by species1 species2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where species1 and species2 contain the common name of the species.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; title "Interactions between #byval(species1) and #byval(species2) ";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The procedure gives the correct display, but across BY groups it keeps the same scaling on the graphs, whereas each set of panels (for a BY group) should be rescaled for the values (number of interactions)&amp;nbsp; applicable to that species pair.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As it is, the scaling for rare species pairs are still done to the axis limits applicable to the very common species which is 100;s of times more (5,000 as max value on Y axis instead of 20 or 30 as max value on Y axis).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can partialy releave the problem &amp;nbsp; by using&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; panelby year / layout=panel columns=2 rows=3 UNISCALE=COLUMN;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but this leaves all the rows in a panel potentially scaled differently, which makes it difficult to visually compare years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some setting to make the BY processing to essentially start completely fresh within the BY group (instead of in this case) using some information (Y axix scale) across the whole dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this can't be done, I probably will need to code up a macro to do the BY processing. That is calling up PROC SGPANEL for each pair of species on the data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your thoughts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS version info (from a macro we developed)&lt;/P&gt;&lt;P&gt;NOTE: SAS version [sysvlong4] is 9.04.01M4P11092016, Site id [syssite] = 10007393&lt;BR /&gt;NOTE: Server Operating system [sysscp]:[sysscpl] is WIN:X64_SR12R2&lt;BR /&gt;NOTE: [_CLIENTAPP] Client application is SAS Studio&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 23:55:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/BY-processing-in-SGPANEL/m-p/547360#M17961</guid>
      <dc:creator>IanShannon</dc:creator>
      <dc:date>2019-03-29T23:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: BY processing in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/BY-processing-in-SGPANEL/m-p/547646#M17972</link>
      <description>&lt;P&gt;Without actual data and the full code you are using for the proc&amp;nbsp;it is hard to be sure that any solution will work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your axis is discrete perhaps the PROPORTIONAL option on the PANELBY might help.&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;</description>
      <pubDate>Mon, 01 Apr 2019 15:51:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/BY-processing-in-SGPANEL/m-p/547646#M17972</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-04-01T15:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: BY processing in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/BY-processing-in-SGPANEL/m-p/556366#M18084</link>
      <description>&lt;P&gt;After much testing and SAS Tech Support, the answer is it cant be done.&amp;nbsp; There appears to be no switch or setting to turn off the unusual way of doing BY processing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc SGPANEL is (in my opinion) incorrectly written, in that it gets information about the WHOLE dataset - across all by groups - to determine the axis scaling.&amp;nbsp; I'm file with it using the whole PANELBY group to determine the axis scaling, but not the whole dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used a hack which makes separate calls to SGPANEL to achieve what I wanted.&amp;nbsp; SAS Tech Support also show me a way using PROC TEMPLATE and PROC SGRENDER.&amp;nbsp; Rather mind blowing to get round a deficiency in the SAS code for SGPANEL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 08:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/BY-processing-in-SGPANEL/m-p/556366#M18084</guid>
      <dc:creator>IanShannon</dc:creator>
      <dc:date>2019-05-06T08:33:44Z</dc:date>
    </item>
  </channel>
</rss>

