<?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: sgscatter outputs side-by-side in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/467886#M16086</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options orientation=landscape;

ods pdf file='C:\_localdata\temp\demo.pdf' columns=2 style=seaside;

ods graphics / width= 4in height=5in;

proc sgscatter data=sashelp.class;
matrix age weight height / group=sex;
run;

proc sgscatter data=sashelp.cars;
matrix mpg_city mpg_highway msrp invoice;
run;

ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;COLUMNS is the easiest option - make sure you set the graphs to a size that will fit on the page. Fully worked example above.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jun 2018 22:51:21 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-06-05T22:51:21Z</dc:date>
    <item>
      <title>sgscatter outputs side-by-side</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/467861#M16083</link>
      <description>&lt;P&gt;i'd like to place output from 2 or more sgscatter plots on the same row. so, imagine that i have two sgscatter statements. i'd like them to both show up on the same row (rather than sequentially). see below for an example. thanks for suggestions&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21053i26001A818CFF0D7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 21:24:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/467861#M16083</guid>
      <dc:creator>brgray</dc:creator>
      <dc:date>2018-06-05T21:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: sgscatter outputs side-by-side</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/467866#M16084</link>
      <description>&lt;P&gt;What's your destination?&lt;/P&gt;
&lt;P&gt;ODS HTML, PDF, RTF?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If PDF it supports a COLUMN statement so if you specify two columns they'll come side by side.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also look at ODS LAYOUT and/or SGPANEL as alternate options but they're more complex.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 21:53:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/467866#M16084</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-05T21:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: sgscatter outputs side-by-side</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/467877#M16085</link>
      <description>&lt;P&gt;thanks. html but i could make it pdf. i may not have been sufficiently clear about my objective. sgpanel doesn't support what i'm looking to do--altho it would come close to doing so if i could place multiple sgpanel outputs side by side. from your ods layout suggestion, i see where i might be able to generate side-by-side matrix plots using ods document (altho i'm hoping for a simpler solution).&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 22:17:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/467877#M16085</guid>
      <dc:creator>brgray</dc:creator>
      <dc:date>2018-06-05T22:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: sgscatter outputs side-by-side</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/467886#M16086</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options orientation=landscape;

ods pdf file='C:\_localdata\temp\demo.pdf' columns=2 style=seaside;

ods graphics / width= 4in height=5in;

proc sgscatter data=sashelp.class;
matrix age weight height / group=sex;
run;

proc sgscatter data=sashelp.cars;
matrix mpg_city mpg_highway msrp invoice;
run;

ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;COLUMNS is the easiest option - make sure you set the graphs to a size that will fit on the page. Fully worked example above.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 22:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/467886#M16086</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-05T22:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: sgscatter outputs side-by-side</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/468025#M16091</link>
      <description>&lt;P&gt;As Reeza says, the ODS LAYOUT GRIDDED statement is a great choice for destinations that support it. For details and examples, see&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2015/11/23/ods-statement-options-to-change/" target="_self"&gt;"Using the ODS statement to add layers in your ODS sandwich"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2015/12/02/matrices-graphs-gridded-layout.html" target="_self"&gt;"Arrange matrices and graphs in a gridded layout"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code might look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / width=500px height=500px;
ods layout gridded columns=2 advance=table;

proc sgscatter data=FIRST;
...
run;

proc sgscatter data=SECOND;
...
run;

ods layout end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 12:31:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/468025#M16091</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-06-06T12:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: sgscatter outputs side-by-side</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/468138#M16097</link>
      <description>&lt;P&gt;hi. this works great (even with a BY statement)--with one hitch. the hitch is that repeat uses of the code lead to pages that are centered on the right margin of my screen (ie much of the plot is off screen). a not-so-great fix is to close the html output; perhaps someone can provide a less drastic fix? many thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my current code is as follows:&lt;BR /&gt;&lt;BR /&gt;title1 "Matrix plots";&lt;BR /&gt;ods graphics / width=400px height=400px;&lt;BR /&gt;ods layout gridded columns=3 advance=table;&lt;BR /&gt;proc sgscatter data=zibout32(where=(sim le 3));&lt;BR /&gt;matrix b00psi_ g00p_ taupsi_ b0psi_1 b0psi_10;&lt;BR /&gt;by b0 b1 b1SD b2 g0 g1 g1SD g2 taupsi rho taup taupsite seasons sites n_ sim;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 17:24:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/468138#M16097</guid>
      <dc:creator>brgray</dc:creator>
      <dc:date>2018-06-06T17:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: sgscatter outputs side-by-side</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/468139#M16098</link>
      <description>&lt;P&gt;You need to end the layout;&lt;/P&gt;
&lt;P&gt;ODS LAYOUT END;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 17:32:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/468139#M16098</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-06-06T17:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: sgscatter outputs side-by-side</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/468141#M16099</link>
      <description>&lt;P&gt;ignore my comment re centering; this problem appears to have been caused by my failure to add ods layout end;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 17:40:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/468141#M16099</guid>
      <dc:creator>brgray</dc:creator>
      <dc:date>2018-06-06T17:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: sgscatter outputs side-by-side</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/468143#M16100</link>
      <description>yup. thanks.</description>
      <pubDate>Wed, 06 Jun 2018 17:40:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/468143#M16100</guid>
      <dc:creator>brgray</dc:creator>
      <dc:date>2018-06-06T17:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: sgscatter outputs side-by-side</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/468146#M16103</link>
      <description>&lt;P&gt;Hi Reeza, many thanks for your and Rick's solutions.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 17:43:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgscatter-outputs-side-by-side/m-p/468146#M16103</guid>
      <dc:creator>brgray</dc:creator>
      <dc:date>2018-06-06T17:43:50Z</dc:date>
    </item>
  </channel>
</rss>

