<?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 gplot and panel in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/gplot-and-panel/m-p/151054#M5676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to do the following I have a dataset with different clustypes. Currently I am plotting each type separately&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to do the following &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Have the charts arranged in a panel with the type in the header of each panel. Main title in the top&lt;/P&gt;&lt;P&gt;2. Output charts in a pdf file&amp;nbsp; - the&amp;nbsp; panel first and then followed by each individual chart &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample data; this shows only two clustering algorithms but I could have 10 or so so I would like to have some flexibility in setting up the panel. I am not sure how to do this any help is appreciated!!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data clusters;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; input clustype$ code$ id rsqw rsqa size;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;median a 1 0.8 0.4&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;median b 1 0.85 0.2 1 &lt;/P&gt;&lt;P&gt;median c 2 0.4 0.1&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;median d 3 0.9&amp;nbsp; 0.2 2&lt;/P&gt;&lt;P&gt;single a 1 0.8 0.4&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;single b 1 0.85 0.2 1 &lt;/P&gt;&lt;P&gt;single c 2 0.4 0.1&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;single d 3 0.9&amp;nbsp; 0.2 2&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let clustype = single;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data filter;&lt;/P&gt;&lt;P&gt;set clusters;&lt;/P&gt;&lt;P&gt;if clustype = "&amp;amp;clustype";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data anno_bubbles; set filter; &lt;/P&gt;&lt;P&gt;length function color $8; &lt;/P&gt;&lt;P&gt;xsys='2'; ysys='2'; hsys='3'; when='b'; &lt;/P&gt;&lt;P&gt;x=rsqw; y=rsqa; &lt;/P&gt;&lt;P&gt;function='pie'; rotate=360; &lt;/P&gt;&lt;P&gt;size=size; &lt;/P&gt;&lt;P&gt;if id = 1 &lt;/P&gt;&lt;P&gt; then color='#5F9F9F'; &lt;/P&gt;&lt;P&gt;if id = 2&lt;/P&gt;&lt;P&gt; then color='#856363'; &lt;/P&gt;&lt;P&gt;if id =3&amp;nbsp; then color='#CD7F32'; &lt;/P&gt;&lt;P&gt;if id =4&amp;nbsp; then color='#9F9F5F'; &lt;/P&gt;&lt;P&gt;if id =5&amp;nbsp; then color='#5F9F9F'; &lt;/P&gt;&lt;P&gt;if id =6&amp;nbsp; then color='#ADEAEA'; &lt;/P&gt;&lt;P&gt;if id =7&amp;nbsp; then color='#B5A642'; &lt;/P&gt;&lt;P&gt;if id =8&amp;nbsp; then color='#B87333'; &lt;/P&gt;&lt;P&gt;if id =9&amp;nbsp; then color='#BC8F8F'; &lt;/P&gt;&lt;P&gt;if id =10&amp;nbsp; then color='#4F2F4F'; &lt;/P&gt;&lt;P&gt;style='psolid'; output; &lt;/P&gt;&lt;P&gt;style='pempty'; color='grayaa'; output; &lt;/P&gt;&lt;P&gt;function='label'; position='2'; size=1.0; text=code; &lt;/P&gt;&lt;P&gt; style=''; color=''; rotate=.; output; &lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title1 ls=1.5 "&amp;amp;clustype"; &lt;/P&gt;&lt;P&gt;symbol1 value=none interpol=none; &lt;/P&gt;&lt;P&gt;axis1 label=(angle=90 "Rsq Within") &lt;/P&gt;&lt;P&gt; order=(0.1 to 1 by 0.05) minor=none offset=(5,5); &lt;/P&gt;&lt;P&gt;axis2 label=("Rsq Across") &lt;/P&gt;&lt;P&gt; order=(0.1 to 1 by .05) minor=none offset=(5,5); &lt;/P&gt;&lt;P&gt;proc gplot data=filter anno=anno_bubbles; &lt;/P&gt;&lt;P&gt;plot rsqw*rsqa / &lt;/P&gt;&lt;P&gt; vaxis=axis1 haxis=axis2; &lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 May 2014 23:39:30 GMT</pubDate>
    <dc:creator>hdg</dc:creator>
    <dc:date>2014-05-08T23:39:30Z</dc:date>
    <item>
      <title>gplot and panel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/gplot-and-panel/m-p/151054#M5676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to do the following I have a dataset with different clustypes. Currently I am plotting each type separately&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to do the following &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Have the charts arranged in a panel with the type in the header of each panel. Main title in the top&lt;/P&gt;&lt;P&gt;2. Output charts in a pdf file&amp;nbsp; - the&amp;nbsp; panel first and then followed by each individual chart &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample data; this shows only two clustering algorithms but I could have 10 or so so I would like to have some flexibility in setting up the panel. I am not sure how to do this any help is appreciated!!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data clusters;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; input clustype$ code$ id rsqw rsqa size;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;median a 1 0.8 0.4&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;median b 1 0.85 0.2 1 &lt;/P&gt;&lt;P&gt;median c 2 0.4 0.1&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;median d 3 0.9&amp;nbsp; 0.2 2&lt;/P&gt;&lt;P&gt;single a 1 0.8 0.4&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;single b 1 0.85 0.2 1 &lt;/P&gt;&lt;P&gt;single c 2 0.4 0.1&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;single d 3 0.9&amp;nbsp; 0.2 2&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let clustype = single;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data filter;&lt;/P&gt;&lt;P&gt;set clusters;&lt;/P&gt;&lt;P&gt;if clustype = "&amp;amp;clustype";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data anno_bubbles; set filter; &lt;/P&gt;&lt;P&gt;length function color $8; &lt;/P&gt;&lt;P&gt;xsys='2'; ysys='2'; hsys='3'; when='b'; &lt;/P&gt;&lt;P&gt;x=rsqw; y=rsqa; &lt;/P&gt;&lt;P&gt;function='pie'; rotate=360; &lt;/P&gt;&lt;P&gt;size=size; &lt;/P&gt;&lt;P&gt;if id = 1 &lt;/P&gt;&lt;P&gt; then color='#5F9F9F'; &lt;/P&gt;&lt;P&gt;if id = 2&lt;/P&gt;&lt;P&gt; then color='#856363'; &lt;/P&gt;&lt;P&gt;if id =3&amp;nbsp; then color='#CD7F32'; &lt;/P&gt;&lt;P&gt;if id =4&amp;nbsp; then color='#9F9F5F'; &lt;/P&gt;&lt;P&gt;if id =5&amp;nbsp; then color='#5F9F9F'; &lt;/P&gt;&lt;P&gt;if id =6&amp;nbsp; then color='#ADEAEA'; &lt;/P&gt;&lt;P&gt;if id =7&amp;nbsp; then color='#B5A642'; &lt;/P&gt;&lt;P&gt;if id =8&amp;nbsp; then color='#B87333'; &lt;/P&gt;&lt;P&gt;if id =9&amp;nbsp; then color='#BC8F8F'; &lt;/P&gt;&lt;P&gt;if id =10&amp;nbsp; then color='#4F2F4F'; &lt;/P&gt;&lt;P&gt;style='psolid'; output; &lt;/P&gt;&lt;P&gt;style='pempty'; color='grayaa'; output; &lt;/P&gt;&lt;P&gt;function='label'; position='2'; size=1.0; text=code; &lt;/P&gt;&lt;P&gt; style=''; color=''; rotate=.; output; &lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title1 ls=1.5 "&amp;amp;clustype"; &lt;/P&gt;&lt;P&gt;symbol1 value=none interpol=none; &lt;/P&gt;&lt;P&gt;axis1 label=(angle=90 "Rsq Within") &lt;/P&gt;&lt;P&gt; order=(0.1 to 1 by 0.05) minor=none offset=(5,5); &lt;/P&gt;&lt;P&gt;axis2 label=("Rsq Across") &lt;/P&gt;&lt;P&gt; order=(0.1 to 1 by .05) minor=none offset=(5,5); &lt;/P&gt;&lt;P&gt;proc gplot data=filter anno=anno_bubbles; &lt;/P&gt;&lt;P&gt;plot rsqw*rsqa / &lt;/P&gt;&lt;P&gt; vaxis=axis1 haxis=axis2; &lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 23:39:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/gplot-and-panel/m-p/151054#M5676</guid>
      <dc:creator>hdg</dc:creator>
      <dc:date>2014-05-08T23:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: gplot and panel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/gplot-and-panel/m-p/400975#M13688</link>
      <description>&lt;P&gt;I'm not sure how to do it in pdf output, but if html output would be ok then you could use htmlpanel'ing.&lt;/P&gt;
&lt;P&gt;Here's an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://robslink.com/SAS/democd_mpg/gas_class_2017.htm" target="_blank"&gt;http://robslink.com/SAS/democd_mpg/gas_class_2017.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://robslink.com/SAS/democd_mpg/gas_class.sas" target="_blank"&gt;http://robslink.com/SAS/democd_mpg/gas_class.sas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="htmlpanel.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15611iBB6F6C85FF79B28E/image-size/large?v=v2&amp;amp;px=999" role="button" title="htmlpanel.png" alt="htmlpanel.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 13:44:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/gplot-and-panel/m-p/400975#M13688</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2017-10-04T13:44:37Z</dc:date>
    </item>
  </channel>
</rss>

