<?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: discretelegend statement in proc sgplot hbarparm in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/discretelegend-statement-in-proc-sgplot-hbarparm/m-p/488743#M21528</link>
    <description>Thanks Cynthia.&lt;BR /&gt;Neither worked. I looked through the guidelines you mentioned and tried a bunch of different variations but none worked.&lt;BR /&gt;</description>
    <pubDate>Wed, 22 Aug 2018 00:33:22 GMT</pubDate>
    <dc:creator>ChristosK</dc:creator>
    <dc:date>2018-08-22T00:33:22Z</dc:date>
    <item>
      <title>discretelegend statement in proc sgplot hbarparm</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/discretelegend-statement-in-proc-sgplot-hbarparm/m-p/488735#M21526</link>
      <description>&lt;P&gt;Ive put this &amp;nbsp;figure together with this code but in the results windows, the keylegend has values, as it should , but it always appears in a column. Ive tried running different across and down statements.&lt;/P&gt;&lt;P&gt;Also, it does not appear in the pdf file I save it to, but does appear in an RTF or word file. Why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just went to change the discretelegend or keylegend so it is on one line. For some reason keylegend does not work in this code .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing close;
ods html style=mystyle path='.' file='newgraph.html';
ods graphics / reset=all border=off width=600 height=800  maxlegendarea=45 ;
   
   proc sgplot data=glm_MAP2 nowall noborder  ;

      title 'Linear Regression Models with Parameter estimates and SD for MAP';
      styleattrs datacontrastcolors=(CX016381 CX1BC9FF CXFF7F00 CX814101  ) ;

refline "mean Nex" "mean LA" "mean UA" "mean LL"/ discretethickness=1 lineattrs=(color=pink) axis=y;
hbarparm category=IV  response= Param / group =DV groupdisplay =cluster  grouporder=data 
barwidth=0.4  clusterwidth=1   limitupper=SD_Param    ;

yaxis type=discrete discreteorder=data label =".";
xaxis label ="."; 
discretelegend  / across=1 location=outside   noborder;  
yaxistable N rpIII  rParam rLCL 	rUCL/ VALUEATTRS=(Color=Black Family=Arial Size=7  Weight=Normal ) VALUEHALIGN=CENTER VALUEJUSTIFY= CENTER ;
 run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 22:28:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/discretelegend-statement-in-proc-sgplot-hbarparm/m-p/488735#M21526</guid>
      <dc:creator>ChristosK</dc:creator>
      <dc:date>2018-08-21T22:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: discretelegend statement in proc sgplot hbarparm</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/discretelegend-statement-in-proc-sgplot-hbarparm/m-p/488742#M21527</link>
      <description>Hi, well, the documentation on ACROSS explains that ACROSS tells the procedure the number of legend entries that are to be placed horizontally on one row before the next row begins. So it seems ACROSS=1 is what you're getting.&lt;BR /&gt;&lt;BR /&gt;  DOWN= legend provides the number of entries that are placed vertically before the next column begins. Have you tried either ACROSS=7 or DOWN=1???&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Aug 2018 00:01:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/discretelegend-statement-in-proc-sgplot-hbarparm/m-p/488742#M21527</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-08-22T00:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: discretelegend statement in proc sgplot hbarparm</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/discretelegend-statement-in-proc-sgplot-hbarparm/m-p/488743#M21528</link>
      <description>Thanks Cynthia.&lt;BR /&gt;Neither worked. I looked through the guidelines you mentioned and tried a bunch of different variations but none worked.&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Aug 2018 00:33:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/discretelegend-statement-in-proc-sgplot-hbarparm/m-p/488743#M21528</guid>
      <dc:creator>ChristosK</dc:creator>
      <dc:date>2018-08-22T00:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: discretelegend statement in proc sgplot hbarparm</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/discretelegend-statement-in-proc-sgplot-hbarparm/m-p/488746#M21529</link>
      <description>&lt;P&gt;This is the error I get when I use "Down=1":&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; NOTE: PROCEDURE SGPLOT used (Total process time):
       real time           0.38 seconds
       cpu time            0.20 seconds
       
 WARNING: DISCRETELEGEND statement with DISPLAYCLIPPED=FALSE is getting clipped. The legend will not be drawn.
 WARNING: DISCRETELEGEND statement with DISPLAYCLIPPED=FALSE is getting clipped. The legend will not be drawn.
 WARNING: The font &amp;lt;sans-serif&amp;gt; is not available. Albany AMT will be used.
 WARNING: DISCRETELEGEND statement with DISPLAYCLIPPED=FALSE is getting clipped. The legend will not be drawn.
 WARNING: The font &amp;lt;sans-serif&amp;gt; is not available. Albany AMT will be used.
 NOTE: There were 28 observations read from the data set USER.GLM_MAP2.
 
 92         
 93         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Same thing with "Across=7":&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; NOTE: PROCEDURE SGPLOT used (Total process time):
       real time           0.42 seconds
       cpu time            0.20 seconds
       
 WARNING: DISCRETELEGEND statement with DISPLAYCLIPPED=FALSE is getting clipped. The legend will not be drawn.
 WARNING: DISCRETELEGEND statement with DISPLAYCLIPPED=FALSE is getting clipped. The legend will not be drawn.
 WARNING: The font &amp;lt;sans-serif&amp;gt; is not available. Albany AMT will be used.
 WARNING: DISCRETELEGEND statement with DISPLAYCLIPPED=FALSE is getting clipped. The legend will not be drawn.
 WARNING: The font &amp;lt;sans-serif&amp;gt; is not available. Albany AMT will be used.
 NOTE: There were 28 observations read from the data set USER.GLM_MAP2.
 
 92         
 93         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Aug 2018 00:52:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/discretelegend-statement-in-proc-sgplot-hbarparm/m-p/488746#M21529</guid>
      <dc:creator>ChristosK</dc:creator>
      <dc:date>2018-08-22T00:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: discretelegend statement in proc sgplot hbarparm</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/discretelegend-statement-in-proc-sgplot-hbarparm/m-p/488753#M21530</link>
      <description>Hi:&lt;BR /&gt;  It may be that there's not enough room I noticed you've also got an YAXISTABLE, which might be cutting down on the available area for the legend. I believe that is a message that gets sent out when you specify a legend and it won't fit. You might want to move this to the ODS GRAPHICS forum where the heavy duty ODS GRAPHICS folks hang out.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 22 Aug 2018 01:54:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/discretelegend-statement-in-proc-sgplot-hbarparm/m-p/488753#M21530</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-08-22T01:54:56Z</dc:date>
    </item>
  </channel>
</rss>

