<?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 lifetest and ods graphics supressing the legend in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-lifetest-and-ods-graphics-supressing-the-legend/m-p/579883#M23142</link>
    <description>&lt;P&gt;I solved the problem differently - it turns out formatted values were too long for displaying. Adding /nolabel was the solution.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2019 14:00:32 GMT</pubDate>
    <dc:creator>js5</dc:creator>
    <dc:date>2019-08-08T14:00:32Z</dc:date>
    <item>
      <title>Proc lifetest and ods graphics supressing the legend</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-lifetest-and-ods-graphics-supressing-the-legend/m-p/579821#M23139</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having an issue with proc lifetest, ods graphics and two strata variables. I can plot Kaplan-Meier curves with each strata variable individually without issues, but if I try to plot them both at once the legend disappears. I tried turning it back on with maxlegendarea=100 but it does not help.&lt;/P&gt;&lt;P&gt;With ods graphics turned off the legend is there but the graph looks super ugly. Here is the code in question:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on /show maxlegendarea=100;
ods escapechar="~";
ods powerpoint image_dpi=450
	file="foo.pptx";
footnote "foo~nbar~nbaz";

title "Progression Free Survival";
title2 "foo";

proc lifetest data=adtte(where=(AFL EQ "Y" and BFL EQ "N" and PARAM EQ "PFS")) plots=survival notable;
	time EVENTDY * CENSORED(1);
	strata SUBGR_A SUBGR_B;
quit;

title;
title2;
footnote;
ods powerpoint close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I cannot share the data unfortunately. Is there any other setting controlling the presence of legend? K-M plot with 5 lines (one combination is empty) is pretty useless if one has to guess which line corresponds to which stratum.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 08:41:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-lifetest-and-ods-graphics-supressing-the-legend/m-p/579821#M23139</guid>
      <dc:creator>js5</dc:creator>
      <dc:date>2019-08-08T08:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc lifetest and ods graphics supressing the legend</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-lifetest-and-ods-graphics-supressing-the-legend/m-p/579827#M23140</link>
      <description>&lt;P&gt;The legend is suppressed when the &lt;CODE class="aa-varname"&gt;LegendOpts&lt;/CODE&gt; macro variable is null.Please use the below macro variable to suppress the legend, &lt;/P&gt;
&lt;P&gt;please place this macro variable before the proc lifetest and run the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let LegendOpts = ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Aug 2019 09:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-lifetest-and-ods-graphics-supressing-the-legend/m-p/579827#M23140</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-08-08T09:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc lifetest and ods graphics supressing the legend</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-lifetest-and-ods-graphics-supressing-the-legend/m-p/579883#M23142</link>
      <description>&lt;P&gt;I solved the problem differently - it turns out formatted values were too long for displaying. Adding /nolabel was the solution.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 14:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-lifetest-and-ods-graphics-supressing-the-legend/m-p/579883#M23142</guid>
      <dc:creator>js5</dc:creator>
      <dc:date>2019-08-08T14:00:32Z</dc:date>
    </item>
  </channel>
</rss>

