<?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: how to adjust axis to make room for legend in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-adjust-axis-to-make-room-for-legend/m-p/560856#M18186</link>
    <description>&lt;P&gt;How long is the text displayed in the legend for your group variable STRATUM? I normally would not expect 20 groups to exceed the default area for a legend but if your text values are long I would also suggest considering if the current text could be reduced.&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2019 14:33:34 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-05-22T14:33:34Z</dc:date>
    <item>
      <title>SGPLOT: how to adjust axis to make room for legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-adjust-axis-to-make-room-for-legend/m-p/560819#M18184</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using SGPLOT for the first time and need help figuring out how to adjust/compress&amp;nbsp; the Y-axis so that the legend can appear on the graph. As of now, the legend is absent from the graphs. I;ve looked through the documentation but haven't found anything that specifically addresses this. Any and all ideas are appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=survplot4;&lt;BR /&gt;step x=time y=survival / group=stratum name='s';&lt;BR /&gt;xaxis min=0 max=360 values=(0 to 360 by 60); title 'Survival in Months';&lt;BR /&gt;yaxis min=0 max=1 values=(0 to 1 by 0.1);&lt;BR /&gt;keylegend 's' / linelength=20;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 13:05:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-adjust-axis-to-make-room-for-legend/m-p/560819#M18184</guid>
      <dc:creator>joesmama</dc:creator>
      <dc:date>2019-05-22T13:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT: how to adjust axis to make room for legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-adjust-axis-to-make-room-for-legend/m-p/560846#M18185</link>
      <description>&lt;P&gt;On the ODS GRAPHICS statement, specify a larger LEGENDAREAMAX value. The default is 20% of your graph space. After that, the legend is dropped. Here is the doc for the option:&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p0kroq43yu0lspn16hk1u4c65lti.htm&amp;amp;docsetVersion=3.1&amp;amp;locale=en#p0xn0oifhodun0n1vyzr3fwx7byg"&gt;https://go.documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p0kroq43yu0lspn16hk1u4c65lti.htm&amp;amp;docsetVersion=3.1&amp;amp;locale=en#p0xn0oifhodun0n1vyzr3fwx7byg&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 14:10:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-adjust-axis-to-make-room-for-legend/m-p/560846#M18185</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-05-22T14:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT: how to adjust axis to make room for legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-adjust-axis-to-make-room-for-legend/m-p/560856#M18186</link>
      <description>&lt;P&gt;How long is the text displayed in the legend for your group variable STRATUM? I normally would not expect 20 groups to exceed the default area for a legend but if your text values are long I would also suggest considering if the current text could be reduced.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 14:33:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-adjust-axis-to-make-room-for-legend/m-p/560856#M18186</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-22T14:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT: how to adjust axis to make room for legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-adjust-axis-to-make-room-for-legend/m-p/560930#M18187</link>
      <description>&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 8 groups in my strata. I have shortened the names but still am not able to get the legend to appear. As well, I've tried adjusting the items suggested in the log to no avail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Some graph legends have been dropped due to size constraints. Try adjusting the MAXLEGENDAREA=,&lt;BR /&gt;WIDTH= and HEIGHT= options in the ODS GRAPHICS statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As well, I've tried adjusting the items suggested in the log to no avail. The legend remains absent.&amp;nbsp; My other graphs using the same data run nicely, ust not this particular graph. I'm not sure how to proceed. Do you have further recommendations? Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 18:31:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-adjust-axis-to-make-room-for-legend/m-p/560930#M18187</guid>
      <dc:creator>joesmama</dc:creator>
      <dc:date>2019-05-22T18:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT: how to adjust axis to make room for legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-adjust-axis-to-make-room-for-legend/m-p/560935#M18188</link>
      <description>Did you try setting ODS GRAPHICS / reset MAXLEGENDAREA=100; ?

If that doesn't fix it then I would try running your original data through the LIFETEST procedure and grab the graph from there, and then post the picture here so we can see exactly how long your labels are and if there's some funny characters in there you're not seeing.</description>
      <pubDate>Wed, 22 May 2019 18:43:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-adjust-axis-to-make-room-for-legend/m-p/560935#M18188</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2019-05-22T18:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT: how to adjust axis to make room for legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-adjust-axis-to-make-room-for-legend/m-p/560939#M18189</link>
      <description>&lt;P&gt;That did the trick!. I wasn't using "reset" before&amp;nbsp;MAXLEGENDAREA.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 18:50:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-adjust-axis-to-make-room-for-legend/m-p/560939#M18189</guid>
      <dc:creator>joesmama</dc:creator>
      <dc:date>2019-05-22T18:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT: how to adjust axis to make room for legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-adjust-axis-to-make-room-for-legend/m-p/560940#M18190</link>
      <description>Thank you for the reference.</description>
      <pubDate>Wed, 22 May 2019 18:51:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-adjust-axis-to-make-room-for-legend/m-p/560940#M18190</guid>
      <dc:creator>joesmama</dc:creator>
      <dc:date>2019-05-22T18:51:47Z</dc:date>
    </item>
  </channel>
</rss>

