<?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: SGPanel with different x-axis range in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-with-different-x-axis-range/m-p/726539#M21157</link>
    <description>&lt;P&gt;Great suggestions and it got me almost there--were I more familiar with sgpanel maybe I could have figured it out.&amp;nbsp; As it is, the best I could do is getting the desired output across two pages.&amp;nbsp; I merged the plots with "keep with next" in Word (see attached) using (see below), which shows what I want to show.&amp;nbsp; THANK YOU ALL VERY MUCH!&amp;nbsp; You've been a big help!&amp;nbsp; -- George&lt;/P&gt;&lt;P&gt;ods _all_ close ;&lt;BR /&gt;ods rtf body="K:\MRM\Model Validation\model_inventory\m0080_Corelogic_AVM\2021\5 Validation Testing\graphs\AVM vs. True Scatterplot by &amp;amp;name..rtf";&lt;BR /&gt;proc sgpanel data=&amp;amp;lib..reg ;&lt;BR /&gt;panelby &amp;amp;by. / uniscale=row LAYOUT=COLUMNLATTICE sort =data ;&lt;BR /&gt;* scatter x=lastsaleprice y=avm_value / ;&lt;BR /&gt;reg x=lastsaleprice y=avm_value / cli /*nomarkers*/ lineattrs=(color=red);&lt;BR /&gt;format avm_value cpred dollar12.0;&lt;BR /&gt;*colaxis min=0 max=1750000;&lt;BR /&gt;* rowaxis min=0 max=1750000;&lt;BR /&gt;TITLE "AVM vs. True Scatterplot by &amp;amp;name";&lt;BR /&gt;run;&lt;BR /&gt;ods rtf close ;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Mar 2021 21:00:48 GMT</pubDate>
    <dc:creator>grezek</dc:creator>
    <dc:date>2021-03-15T21:00:48Z</dc:date>
    <item>
      <title>SGPanel with different x-axis range</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-with-different-x-axis-range/m-p/726044#M21145</link>
      <description>&lt;P&gt;I am trying to get SGPanel to produce a scatter plot graphs in 4 panels with different x-axis scales.&amp;nbsp; I divide the data into 4 groups of x-values--the by statement divides the data such that each panel displays the entire common range (see attach).&amp;nbsp; Is it possible to have each panel with its own range such that the detail within the range is clearer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code I use:&lt;/P&gt;&lt;P&gt;ods rtf body="K:\MRM\Model ...\graphs\AVM vs. True Scatterplot by &amp;amp;name..rtf";&lt;BR /&gt;proc sgpanel data=&amp;amp;lib..reg ;&lt;BR /&gt;panelby &amp;amp;by. / /*uniscale=row*/ sort =data ;&lt;BR /&gt;* scatter x=lastsaleprice y=avm_value / ;&lt;BR /&gt;reg x=lastsaleprice y=avm_value / cli /*nomarkers*/ lineattrs=(color=red);&lt;BR /&gt;format avm_value cpred dollar12.0;&lt;BR /&gt;*colaxis min=0 max=1750000;&lt;BR /&gt;* rowaxis min=0 max=1750000;&lt;BR /&gt;TITLE "AVM vs. True Scatterplot by &amp;amp;name";&lt;BR /&gt;run;&lt;BR /&gt;ods rtf close ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The image I'm getting is attached.&amp;nbsp; Any suggestions are welcome.&amp;nbsp; Thanks for your help.&amp;nbsp; -- George&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Mar 2021 14:37:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-with-different-x-axis-range/m-p/726044#M21145</guid>
      <dc:creator>grezek</dc:creator>
      <dc:date>2021-03-13T14:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel with different x-axis range</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-with-different-x-axis-range/m-p/726057#M21146</link>
      <description>&lt;P&gt;proc sgpanel is for making graph matrices (panels) that share axes. If you want a matrix of graphs that do not share axes, your best bet, I think, is ODS LAYOUT. Look at the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=odsug&amp;amp;docsetTarget=p06ji2uhvayhq5n1eik2z2rf2ga8a.htm&amp;amp;locale=en" target="_self"&gt;ODS LAYOUT GRIDDED&lt;/A&gt; statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An alternative would be to plot all the data on the same graph, possibly with reflines to separate the x variable ranges.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Mar 2021 18:57:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-with-different-x-axis-range/m-p/726057#M21146</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2021-03-13T18:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel with different x-axis range</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-with-different-x-axis-range/m-p/726274#M21147</link>
      <description>&lt;P&gt;The PANELBY statement supports &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=n0wqazuv6959fnn1fask7mi68lla.htm&amp;amp;locale=en#p1wsegbk0v9jbzn18c659jj65hsn" target="_self"&gt;the UNISCALE option&lt;/A&gt;, which determines whether the plots share a common X axis, Y axis, or both.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 13:19:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-with-different-x-axis-range/m-p/726274#M21147</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-03-15T13:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel with different x-axis range</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-with-different-x-axis-range/m-p/726279#M21148</link>
      <description>&lt;P&gt;In addition to the UNISCALE option mentioned by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;, you will also need to specify either LAYOUT=COLUMNLATTICE or COLUMN=4 to get the correct layout for your display. The LAYOUT option would be preferred here because you will always want all of the plots on the same row, regarding of the number of plots. You will also want to use the ONEPANEL option to turn off pagination to make sure all plots stay in the same graph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 13:27:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-with-different-x-axis-range/m-p/726279#M21148</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2021-03-15T13:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel with different x-axis range</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-with-different-x-axis-range/m-p/726536#M21155</link>
      <description>&lt;P&gt;This looks promising, but I couldn't figure out how to get it to work with SGPanel.&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 20:41:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-with-different-x-axis-range/m-p/726536#M21155</guid>
      <dc:creator>grezek</dc:creator>
      <dc:date>2021-03-15T20:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel with different x-axis range</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-with-different-x-axis-range/m-p/726538#M21156</link>
      <description>&lt;P&gt;What&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&amp;nbsp;was proposing was to use SGPLOT with a BY statement to create individual plots, and use ODS LAYOUT to lay them out on the page as desired. If you go that route, be sure to use the UNISCALE option on the PROC SGPLOT statement to force the Y axis to be uniform across BY-groups.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 20:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-with-different-x-axis-range/m-p/726538#M21156</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2021-03-15T20:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel with different x-axis range</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-with-different-x-axis-range/m-p/726539#M21157</link>
      <description>&lt;P&gt;Great suggestions and it got me almost there--were I more familiar with sgpanel maybe I could have figured it out.&amp;nbsp; As it is, the best I could do is getting the desired output across two pages.&amp;nbsp; I merged the plots with "keep with next" in Word (see attached) using (see below), which shows what I want to show.&amp;nbsp; THANK YOU ALL VERY MUCH!&amp;nbsp; You've been a big help!&amp;nbsp; -- George&lt;/P&gt;&lt;P&gt;ods _all_ close ;&lt;BR /&gt;ods rtf body="K:\MRM\Model Validation\model_inventory\m0080_Corelogic_AVM\2021\5 Validation Testing\graphs\AVM vs. True Scatterplot by &amp;amp;name..rtf";&lt;BR /&gt;proc sgpanel data=&amp;amp;lib..reg ;&lt;BR /&gt;panelby &amp;amp;by. / uniscale=row LAYOUT=COLUMNLATTICE sort =data ;&lt;BR /&gt;* scatter x=lastsaleprice y=avm_value / ;&lt;BR /&gt;reg x=lastsaleprice y=avm_value / cli /*nomarkers*/ lineattrs=(color=red);&lt;BR /&gt;format avm_value cpred dollar12.0;&lt;BR /&gt;*colaxis min=0 max=1750000;&lt;BR /&gt;* rowaxis min=0 max=1750000;&lt;BR /&gt;TITLE "AVM vs. True Scatterplot by &amp;amp;name";&lt;BR /&gt;run;&lt;BR /&gt;ods rtf close ;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 21:00:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-with-different-x-axis-range/m-p/726539#M21157</guid>
      <dc:creator>grezek</dc:creator>
      <dc:date>2021-03-15T21:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel with different x-axis range</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-with-different-x-axis-range/m-p/726547#M21159</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 21:22:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-with-different-x-axis-range/m-p/726547#M21159</guid>
      <dc:creator>grezek</dc:creator>
      <dc:date>2021-03-15T21:22:18Z</dc:date>
    </item>
  </channel>
</rss>

