<?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: sgplot with proc greplay in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/sgplot-with-proc-greplay/m-p/187684#M47604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not the top article in particular, it is a blog, so has many posts on different subjects.&amp;nbsp; You should however find an example there, try the search box for Legend, has many examples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2014 13:00:18 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2014-07-21T13:00:18Z</dc:date>
    <item>
      <title>sgplot with proc greplay</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/sgplot-with-proc-greplay/m-p/187680#M47600</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; I am trying to create multilple graph with common legend. I got multilple graphs in to the pdf but I am stuck on how to create a common legend for sgplot . I got an example for gplot tp create a common legend&amp;nbsp; but not forsgplot. Can anyone help me on this.Thanks in advance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 12:24:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/sgplot-with-proc-greplay/m-p/187680#M47600</guid>
      <dc:creator>sundeep23</dc:creator>
      <dc:date>2014-07-21T12:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot with proc greplay</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/sgplot-with-proc-greplay/m-p/187681#M47601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look through this blog: &lt;A class="active_link" href="http://blogs.sas.com/content/graphicallyspeaking/"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It has examples of pretty much anything you can think of doing with graphs, generally provides sgplot and GTL code for each one.&amp;nbsp; GTL is probably easier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 12:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/sgplot-with-proc-greplay/m-p/187681#M47601</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-21T12:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot with proc greplay</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/sgplot-with-proc-greplay/m-p/187682#M47602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response.&amp;nbsp; I am trying to create 4 bar line charts with common legend I dont see any similar thing in that article. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 12:36:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/sgplot-with-proc-greplay/m-p/187682#M47602</guid>
      <dc:creator>sundeep23</dc:creator>
      <dc:date>2014-07-21T12:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot with proc greplay</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/sgplot-with-proc-greplay/m-p/187683#M47603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; This might be better posted in the Graph forum. But I can easily control the legend when I run this code. I guess I don't understand what you mean by 4 "bar line" charts -- 1 bar and 4 lines? or...?&lt;/P&gt;&lt;P&gt;Cynthia&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;** run the code once with the KEYLEGEND statement and then;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;** run it again without and you should see what the KEYLEGEND statement does;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods listing;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc sgplot data=sashelp.shoes;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; vbar product / response=returns stat=mean name='bar';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; vline product / response=inventory stat=mean name='inv' y2axis;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; vline product / response=sales stat=mean name='sal' y2axis;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; keylegend 'inv' 'sal';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 12:55:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/sgplot-with-proc-greplay/m-p/187683#M47603</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-07-21T12:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot with proc greplay</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/sgplot-with-proc-greplay/m-p/187684#M47604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not the top article in particular, it is a blog, so has many posts on different subjects.&amp;nbsp; You should however find an example there, try the search box for Legend, has many examples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 13:00:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/sgplot-with-proc-greplay/m-p/187684#M47604</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-21T13:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot with proc greplay</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/sgplot-with-proc-greplay/m-p/187685#M47605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is&amp;nbsp; 4 graphs in one pdf page which need to have one common legend for all the 4 graphs .Not 4 lines and one bar in one graph. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 13:01:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/sgplot-with-proc-greplay/m-p/187685#M47605</guid>
      <dc:creator>sundeep23</dc:creator>
      <dc:date>2014-07-21T13:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot with proc greplay</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/sgplot-with-proc-greplay/m-p/187686#M47606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try layout lattice per: &lt;A class="active_link" href="http://blogs.sas.com/content/graphicallyspeaking/2013/02/12/gtl-layouts/"&gt;http://blogs.sas.com/content/graphicallyspeaking/2013/02/12/gtl-layouts/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That even shows common legend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 13:29:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/sgplot-with-proc-greplay/m-p/187686#M47606</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-21T13:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot with proc greplay</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/sgplot-with-proc-greplay/m-p/187687#M47607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Sounds like PROC SGPANEL to me. You can easily get 4 graphs on 1 page in a PDF file with 1 legend.&lt;/P&gt;&lt;P&gt;Cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods pdf file='c:\temp\_4graf.pdf';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc sgpanel data=sashelp.shoes;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; where (product contains 'Dress' or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; product contains 'Casual') and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; region in ('Asia', 'Pacific', 'Canada');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; panelby product;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; vbar region / response=sales stat=mean group=region;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods pdf close;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 22:18:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/sgplot-with-proc-greplay/m-p/187687#M47607</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-07-21T22:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot with proc greplay</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/sgplot-with-proc-greplay/m-p/187688#M47608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia,&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; Its not a sgpanel procedure as I am creating a bar line chart I used Proc sgplot. It is similar to the below example but the only thing is I am not getting the common legend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A 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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 04:31:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/sgplot-with-proc-greplay/m-p/187688#M47608</guid>
      <dc:creator>sundeep23</dc:creator>
      <dc:date>2014-07-22T04:31:41Z</dc:date>
    </item>
  </channel>
</rss>

