<?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 Multiple graph in one page in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Multiple-graph-in-one-page/m-p/535213#M146943</link>
    <description>&lt;P&gt;I want to put 3 graph in one page. I am using PROC SGPLOT procedure. below is my code. I have tried PROC GREPLAY but its not working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods listing gpath="XXX" dpi=300;&lt;BR /&gt;ods graphics / reset imagename="XXX" imagefmt=png height=4in width=7in noborder;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%inc titles;&lt;BR /&gt;&lt;BR /&gt;Proc Sgplot data=abc nowall noborder; &lt;BR /&gt;where trtpn eq 1;&lt;BR /&gt;Vbarparm category=subjid response=pchg /GROUP=pchgcat1 name='TRT1';&lt;BR /&gt;Refline 20 -30 / lineattrs=(pattern=shortdash) ; &lt;BR /&gt;Xaxis label= "VVV"; &lt;BR /&gt;Yaxis values=(100 to -100 by -20) label= "SSS"; &lt;BR /&gt;Keylegend / title='' location=inside position=topright across=1 noborder;&lt;BR /&gt;footnote1 FONT='Times New Roman' j=left "DFDFF";&lt;BR /&gt;Run;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Feb 2019 15:09:16 GMT</pubDate>
    <dc:creator>SanjayAhir</dc:creator>
    <dc:date>2019-02-13T15:09:16Z</dc:date>
    <item>
      <title>Multiple graph in one page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-graph-in-one-page/m-p/535213#M146943</link>
      <description>&lt;P&gt;I want to put 3 graph in one page. I am using PROC SGPLOT procedure. below is my code. I have tried PROC GREPLAY but its not working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods listing gpath="XXX" dpi=300;&lt;BR /&gt;ods graphics / reset imagename="XXX" imagefmt=png height=4in width=7in noborder;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%inc titles;&lt;BR /&gt;&lt;BR /&gt;Proc Sgplot data=abc nowall noborder; &lt;BR /&gt;where trtpn eq 1;&lt;BR /&gt;Vbarparm category=subjid response=pchg /GROUP=pchgcat1 name='TRT1';&lt;BR /&gt;Refline 20 -30 / lineattrs=(pattern=shortdash) ; &lt;BR /&gt;Xaxis label= "VVV"; &lt;BR /&gt;Yaxis values=(100 to -100 by -20) label= "SSS"; &lt;BR /&gt;Keylegend / title='' location=inside position=topright across=1 noborder;&lt;BR /&gt;footnote1 FONT='Times New Roman' j=left "DFDFF";&lt;BR /&gt;Run;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 15:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-graph-in-one-page/m-p/535213#M146943</guid>
      <dc:creator>SanjayAhir</dc:creator>
      <dc:date>2019-02-13T15:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple graph in one page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-graph-in-one-page/m-p/535239#M146946</link>
      <description>&lt;P&gt;Switch to GTL, you can get the GTL code from what you have by putting:&lt;/P&gt;
&lt;PRE&gt;Proc Sgplot data=abc nowall noborder tmplout="c:/text.txt"; &lt;/PRE&gt;
&lt;P&gt;In the file c:/text.txt you will find the gtl code which is generated.&amp;nbsp; Then you add a layout gridded step to that, and add in your other graphs:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/?s=gridded" target="_blank"&gt;https://blogs.sas.com/content/?s=gridded&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may also be able to do it with sgpanel:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/62603/HTML/default/viewer.htm#sgpanel-stmt.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatproc/62603/HTML/default/viewer.htm#sgpanel-stmt.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the best reference for GTL and sgplot:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 15:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-graph-in-one-page/m-p/535239#M146946</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2019-02-13T15:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple graph in one page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-graph-in-one-page/m-p/535241#M146948</link>
      <description>What type of 'page' are you referring to? Usually that would mean ODS PDF or RTF to me, but your code only shows listing which is the text output and has no concept of 'pages'.</description>
      <pubDate>Wed, 13 Feb 2019 15:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-graph-in-one-page/m-p/535241#M146948</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-13T15:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple graph in one page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-graph-in-one-page/m-p/535243#M146949</link>
      <description>&lt;P&gt;I am using ODS listing and I am creating graph file PNG image.&amp;nbsp;&lt;SPAN&gt;layout gridded wont work with ODS listing.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:01:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-graph-in-one-page/m-p/535243#M146949</guid>
      <dc:creator>SanjayAhir</dc:creator>
      <dc:date>2019-02-13T16:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple graph in one page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-graph-in-one-page/m-p/535246#M146950</link>
      <description>&lt;P&gt;I am creating PNG file.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:02:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-graph-in-one-page/m-p/535246#M146950</guid>
      <dc:creator>SanjayAhir</dc:creator>
      <dc:date>2019-02-13T16:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple graph in one page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-graph-in-one-page/m-p/535247#M146951</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;You did NOT show all your code. What is your destination of interest? RTF, PDF, HTML. Wanting all 3 graphs on one "page" implies RTF or PDF.&lt;BR /&gt;&lt;BR /&gt;Nobody can run your code, since you did not provide all the code or any data. Showing your program is good, but without data, in order for anyone to help you, they have to 1) guess what your data looks like and how it is structured and 2) spend time making fake data to test with and 3) guess what destination you're using.&lt;BR /&gt;&lt;BR /&gt;I see that you've got ODS LISTING as an ODS statement, but with LISTING output, you are not creating GRAPHS for PDF or RTF, you will only create PNG files or image files that are single images, not a page with images on it.&lt;BR /&gt;&lt;BR /&gt;With ODS PDF, on the other hand, if you size the images correctly, you can simply use STARTPAGE=NEVER to get them all on one page.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="class_vbar_onepage.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27122iF7BC6A19AF1EAFDC/image-size/large?v=v2&amp;amp;px=999" role="button" title="class_vbar_onepage.png" alt="class_vbar_onepage.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or, you can do more advanced examples like this, using ODS LAYOUT and ODS REGION:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paper_example.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27123i1D767D26BB60537B/image-size/large?v=v2&amp;amp;px=999" role="button" title="paper_example.png" alt="paper_example.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From this paper: &lt;A href="http://support.sas.com/resources/papers/proceedings16/SAS5762-2016.pdf" target="_blank" rel="noopener"&gt;http://support.sas.com/resources/papers/proceedings16/SAS5762-2016.pdf&lt;/A&gt; on page 24.&lt;BR /&gt;&lt;BR /&gt;Hope this help,&lt;BR /&gt;Cynthia&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:06:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-graph-in-one-page/m-p/535247#M146951</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-02-13T16:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple graph in one page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-graph-in-one-page/m-p/535253#M146952</link>
      <description>PNG files don't have 'page' concept, they're image files. You need to set the PNG dimensions to your 'page' dimensions. The only way I know of to get two graphs onto one PNG would be to create the GTL code and do it in one SGRENDER so hopefully someone has a better suggestion. &lt;BR /&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:12:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-graph-in-one-page/m-p/535253#M146952</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-13T16:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple graph in one page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-graph-in-one-page/m-p/535260#M146956</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/24078"&gt;@SanjayAhir&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I want to put 3 graph in one page. I am using PROC SGPLOT procedure. below is my code. I have tried PROC GREPLAY but its not working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods listing gpath="XXX" dpi=300;&lt;BR /&gt;ods graphics / reset imagename="XXX" imagefmt=png height=4in width=7in noborder;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%inc titles;&lt;BR /&gt;&lt;BR /&gt;Proc Sgplot data=abc nowall noborder; &lt;BR /&gt;where trtpn eq 1;&lt;BR /&gt;Vbarparm category=subjid response=pchg /GROUP=pchgcat1 name='TRT1';&lt;BR /&gt;Refline 20 -30 / lineattrs=(pattern=shortdash) ; &lt;BR /&gt;Xaxis label= "VVV"; &lt;BR /&gt;Yaxis values=(100 to -100 by -20) label= "SSS"; &lt;BR /&gt;Keylegend / title='' location=inside position=topright across=1 noborder;&lt;BR /&gt;footnote1 FONT='Times New Roman' j=left "DFDFF";&lt;BR /&gt;Run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Proc Greplay only works with the device based graphics that create catalog entries from Proc Gplot, Gchart and related.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What size "page" are you sending the output to? If you graph is created with a height of 4in then if your "page" is not larger than 12in tall then you cannot fit three graphs. You also need to make some allowance for space between graphs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically to send multiple Sgplot graphs to a single document they would appear between an ODS destination open and close such as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ods rtf &amp;lt;options&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; proc sqplot;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; proc sgplot;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; proc sgplot;&lt;/P&gt;
&lt;P&gt;ods rtf close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-graph-in-one-page/m-p/535260#M146956</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-02-13T16:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple graph in one page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-graph-in-one-page/m-p/536445#M147425</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your reply.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is dummy data.&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 144pt;" border="0" width="192" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="64" height="19" style="height: 14.5pt; width: 48pt;"&gt;SubjID&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;CHG&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;GRP&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;101&lt;/TD&gt;
&lt;TD align="right"&gt;80&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;102&lt;/TD&gt;
&lt;TD align="right"&gt;70&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;103&lt;/TD&gt;
&lt;TD align="right"&gt;60&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;104&lt;/TD&gt;
&lt;TD align="right"&gt;50&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;105&lt;/TD&gt;
&lt;TD align="right"&gt;40&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;106&lt;/TD&gt;
&lt;TD align="right"&gt;-10&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;107&lt;/TD&gt;
&lt;TD align="right"&gt;-20&lt;/TD&gt;
&lt;TD align="right"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;108&lt;/TD&gt;
&lt;TD align="right"&gt;-30&lt;/TD&gt;
&lt;TD align="right"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;109&lt;/TD&gt;
&lt;TD align="right"&gt;-70&lt;/TD&gt;
&lt;TD align="right"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to create kind of 3 graph in one page in PNG format. I have tried many procedure but didn't get. I have attached one file for Graph. Please check.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 13:15:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-graph-in-one-page/m-p/536445#M147425</guid>
      <dc:creator>SanjayAhir</dc:creator>
      <dc:date>2019-02-18T13:15:44Z</dc:date>
    </item>
  </channel>
</rss>

