<?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: proc sgplot common legend in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-common-legend/m-p/204644#M7602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for the quick response I am generating a barline chart . I used greplay as I need to create a 3* 3 graph template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sundeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2015 16:00:09 GMT</pubDate>
    <dc:creator>sundeep23</dc:creator>
    <dc:date>2015-03-18T16:00:09Z</dc:date>
    <item>
      <title>proc sgplot common legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-common-legend/m-p/204642#M7600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Using the below link I have created created multiple sgplot output on to one pdf . What I need is to create a common legend . I have tried creating a blank sgplot with legend by making the graph axis values out of range but it didn't worked as it is masking the entire multiple sgplot output. Is there any other way to do it.&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/kb/41/461.html" title="http://support.sas.com/kb/41/461.html"&gt;41461 - Put multiple PROC SGPLOT outputs on the same PDF page using PROC GREPLAY&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sundeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 15:40:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-common-legend/m-p/204642#M7600</guid>
      <dc:creator>sundeep23</dc:creator>
      <dc:date>2015-03-18T15:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot common legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-common-legend/m-p/204643#M7601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can put multiple SG outputs on the same PDF page without using GREPLAY. In fact, if you use GREPLAY to do it, you would need to be very careful how you generated the images as to not create image artifacts when putting them into PDF. To help with both this issue and the common legend, it would be helpful to know the types of graphs you're generating, as there might be a simple way to get both to happen is certain situations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 15:53:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-common-legend/m-p/204643#M7601</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2015-03-18T15:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot common legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-common-legend/m-p/204644#M7602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for the quick response I am generating a barline chart . I used greplay as I need to create a 3* 3 graph template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sundeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 16:00:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-common-legend/m-p/204644#M7602</guid>
      <dc:creator>sundeep23</dc:creator>
      <dc:date>2015-03-18T16:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot common legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-common-legend/m-p/204645#M7603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, two more questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. What version of SAS are you using?&lt;/P&gt;&lt;P&gt;2. Are you generating these bar-line charts using a BY-group?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 16:14:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-common-legend/m-p/204645#M7603</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2015-03-18T16:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot common legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-common-legend/m-p/204646#M7604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am using SAS 9.4 and I am not using by variable but group option in the vbarparm.I am not using vbar and vline as I need different group labels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample code&lt;/P&gt;&lt;P&gt;proc sgplot data=&amp;amp;inpt.;&lt;/P&gt;&lt;P&gt;where tr= "&amp;amp;FRT.";&lt;/P&gt;&lt;P&gt;vbarparm category=var1 response=cnt / group=grp1 name="a";&lt;/P&gt;&lt;P&gt;series x=var1&amp;nbsp; y=rt / group=grp2 y2axis name="b";&lt;/P&gt;&lt;P&gt;keylegend "a" "b"&amp;nbsp; / across=4;&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;Thanks,&lt;/P&gt;&lt;P&gt;Sundeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 17:29:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-common-legend/m-p/204646#M7604</guid>
      <dc:creator>sundeep23</dc:creator>
      <dc:date>2015-03-18T17:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot common legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-common-legend/m-p/204647#M7605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the code sample. That really helps. Here is a solution that should give you a 3x3 grid of charts with a common legend on each PDF page. The output is assuming some relationship between each plot:&lt;/P&gt;&lt;P&gt;ods pdf file="temp.pdf";&lt;/P&gt;&lt;P&gt;ods graphics / width=7in height=9.5in; /* allowing for some margins */&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc sgpanel data=&amp;amp;inpt.;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;panelby tr / novarname onepanel rows=3 columns=3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;vbarparm category=var1 response=cnt / group=grp1 name="a";&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;series x=var1&amp;nbsp; y=rt / group=grp2 y2axis name="b";&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;keylegend "a" "b"&amp;nbsp; / across=4;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;ods pdf close;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;If you do not want the headers, add the NOHEADER option to the PANELBY statement. Give that a try and see if that will work for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 19:06:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-common-legend/m-p/204647#M7605</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2015-03-18T19:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot common legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-common-legend/m-p/204648#M7606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan for the code sample I will try that and get back to you .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 19:18:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-common-legend/m-p/204648#M7606</guid>
      <dc:creator>sundeep23</dc:creator>
      <dc:date>2015-03-18T19:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot common legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-common-legend/m-p/204649#M7607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sgpanel doesn't support&amp;nbsp; y2axis I am getting error at series statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sundeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 20:08:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-common-legend/m-p/204649#M7607</guid>
      <dc:creator>sundeep23</dc:creator>
      <dc:date>2015-03-18T20:08:32Z</dc:date>
    </item>
  </channel>
</rss>

