<?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: SAS 9.3 Forcing a legend to appear for lines not on the graph SGPANEL in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-9-3-Forcing-a-legend-to-appear-for-lines-not-on-the-graph/m-p/508327#M1646</link>
    <description>&lt;P&gt;Check INSET statement .&lt;/P&gt;</description>
    <pubDate>Mon, 29 Oct 2018 13:13:33 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2018-10-29T13:13:33Z</dc:date>
    <item>
      <title>SAS 9.3 Forcing a legend to appear for lines not on the graph SGPANEL</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-9-3-Forcing-a-legend-to-appear-for-lines-not-on-the-graph/m-p/508317#M1643</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I want a full legend of all 8 treatments to appear on every page I have 48 subjects and they have all taken 1 of 8 treatments (6 subjects to every treatment) so the first 4 subjects appear on page 1 have all taken treatment 1 and so only treatment 1 appears in the legend here is code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    /* report section*/
    ods rtf file="&amp;amp;place.\&amp;amp;outnum. &amp;amp;outnam1..rtf" style=tfl bodytitle nogtitle nogfootnote ; 
       ods listing close; 
       ods graphics on / height=7.8cm width=25cm border=off ;
       ods listing; 
    %macro paging(p=);
    proc sgpanel data=outputa.f_conc_&amp;amp;type (where=(page=&amp;amp;p)); 
       footnote1 j=l f=courier h=9pt "Source Listing: &amp;amp;slist; Produced: &amp;amp;mdate. &amp;amp;mtime. - Page &amp;amp;p of 10";
       footnote2 j=l f=courier h=9pt "Lower Limit of Quantitation - 1.00 ng/mL.";
       title1 f=courier h=9pt justify=c "&amp;amp;study";
       title2 f=courier h=9pt justify=c "&amp;amp;outnum";
       title3 f=courier h=9pt justify=c "&amp;amp;outnam1";
       title4 f=courier h=9pt justify=c "&amp;amp;outnam2";

          panelby subject / rows=2 columns=2 novarname;
         series x=atptn y=_1    / legendlabel="Trt 1"   name='_1'  lineattrs=(color=blue thickness=1 pattern=1);
         series x=atptn y=_2    / legendlabel="Trt 2"  name='_2'  lineattrs=(color=red thickness=1 pattern=1);
         series x=atptn y=_3     / legendlabel="Trt 3"  name='_3'  lineattrs=(color=green thickness=1 pattern=1);
         series x=atptn y=_4     / legendlabel="Trt 4"  name='_4'  lineattrs=(color=black thickness=1 pattern=1);
         series x=atptn y=_5    / legendlabel="Trt 5"  name='_5'  lineattrs=(color=orange thickness=1 pattern=1);
         series x=atptn y=_6    / legendlabel="Trt 6" name='_6'  lineattrs=(color=purple thickness=1 pattern=1);
         series x=atptn y=_7     / legendlabel="Trt 7" name='_7'  lineattrs=(color=magenta thickness=1 pattern=1);
         series x=atptn y=_8     / legendlabel="Trt 8" name='_8'  lineattrs=(color=brown thickness=1 pattern=1);
         keylegend '_1' '_2' '_3' '_4' '_5' '_6' '_7' '_8' / across=4 down=2;
       colaxis label="Time Post Dose (h)" labelattrs=(family='Courier') values=(0,1,2,3,4,6,8,10,12,16,24,36,48) min=0 max=48;
       rowaxis label="KVD900 Concentration (ng/mL)" &amp;amp;yaxis;
    run;

    %mend paging;
    %paging(p=1);
    %paging(p=2);
    %paging(p=3);
    %paging(p=4);
    %paging(p=5);
    %paging(p=6);
    %paging(p=7);
    %paging(p=8);
    %paging(p=9);
    %paging(p=10);
    ods rtf close; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks in advance for any help I know this is possible through GTL but if there is an easier way through SGPANEL I would love to know I am using SAS 9.3. Using gtitle and gfootnote is not possible as the headers need to be outside the graph, If there are any questions ask away &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 12:30:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-9-3-Forcing-a-legend-to-appear-for-lines-not-on-the-graph/m-p/508317#M1643</guid>
      <dc:creator>joshua_owen</dc:creator>
      <dc:date>2018-10-29T12:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.3 Forcing a legend to appear for lines not on the graph SGPANEL</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-9-3-Forcing-a-legend-to-appear-for-lines-not-on-the-graph/m-p/508327#M1646</link>
      <description>&lt;P&gt;Check INSET statement .&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 13:13:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-9-3-Forcing-a-legend-to-appear-for-lines-not-on-the-graph/m-p/508327#M1646</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-10-29T13:13:33Z</dc:date>
    </item>
  </channel>
</rss>

