<?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: Survival PLots with SG Plot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Survival-PLots-with-SG-Plot/m-p/499927#M17041</link>
    <description>&lt;P&gt;Is TINVER the output from a PROC? Can you provide data so we can run it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Sep 2018 15:27:46 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-09-28T15:27:46Z</dc:date>
    <item>
      <title>Survival PLots with SG Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Survival-PLots-with-SG-Plot/m-p/499729#M17034</link>
      <description>&lt;P&gt;I'm trying to create a survival plot where the labels on Subjects at Risk are different than what is shown in the legend. I'm also having some difficulty in getting some space between the plot and the xaxistable so that the label "Subjects at Risk" is not overwriting the x axis label in the plot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So to summarize&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I need a legend in the plot with the full treatment names along with censored.&lt;/P&gt;&lt;P&gt;2. I need space between the xaxistable and x-axis label so the xaxistable can have its own label.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be optimal if I could have one legend with the two treatments and censored in it, but I cannot tell from the documentation if that is doable.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 23:15:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Survival-PLots-with-SG-Plot/m-p/499729#M17034</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2018-09-27T23:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Survival PLots with SG Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Survival-PLots-with-SG-Plot/m-p/499732#M17035</link>
      <description>&lt;P&gt;If i understand your request correctly then I run my macro newsurv can do this for you if you're interested &lt;A title="Newsurv" href="https://communities.sas.com/t5/SAS-Communities-Library/Kaplan-Meier-Survival-Plotting-Macro-NEWSURV/ta-p/479747" target="_blank"&gt;Macro link.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise I think the title option in the x axis table can add a label for the patients at risk separate from the x axis label.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 23:29:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Survival-PLots-with-SG-Plot/m-p/499732#M17035</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2018-09-27T23:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Survival PLots with SG Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Survival-PLots-with-SG-Plot/m-p/499737#M17036</link>
      <description>&lt;P&gt;AS a minimum show the code you are using now. It wouldn't hurt to provide some example data.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 23:53:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Survival-PLots-with-SG-Plot/m-p/499737#M17036</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-27T23:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Survival PLots with SG Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Survival-PLots-with-SG-Plot/m-p/499864#M17038</link>
      <description>&lt;P&gt;SG Plot code follows - I have annotations and attribute maps attached but that works fine:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;I&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/I&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sgplot&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=tinterv &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;dattrmap&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=myattrmap ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;step&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;x&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=time &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;y&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=survival / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;group&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=stratuma &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;lineattrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;thickness&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1.75&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;px) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;name&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'s'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;attrid&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = myid;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;scatter&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;x&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=time &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;y&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=censored / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;group&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=stratuma &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;name&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'c'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;attrid&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = myid &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datalabelattrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; =(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;family&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Courier New"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;size&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;9&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;xaxistable&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; atrisk / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;labelattrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;family&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Courier New"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;size&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;9&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;label&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;x&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=tatrisk &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=stratuma &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;location&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=outside &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;position&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = bottom &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;valueattrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;family&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;= &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Courier New"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;size&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;9&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) ; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;keylegend&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"c"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;location&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=inside &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;position&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = topright &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;valueattrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;family&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Courier New"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;size&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;9&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;title&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Censored"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;titleattrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;family&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Courier New"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;size&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;9&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;yaxis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;min&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;labelattrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;family&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Courier New"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;size&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;9&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;xaxis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;labelattrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; =(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;family&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Courier New"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;size&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;9&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;values&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; to &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;300&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; by &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;60&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;);&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;I&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/I&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 12:39:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Survival-PLots-with-SG-Plot/m-p/499864#M17038</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2018-09-28T12:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Survival PLots with SG Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Survival-PLots-with-SG-Plot/m-p/499927#M17041</link>
      <description>&lt;P&gt;Is TINVER the output from a PROC? Can you provide data so we can run it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 15:27:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Survival-PLots-with-SG-Plot/m-p/499927#M17041</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-28T15:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Survival PLots with SG Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Survival-PLots-with-SG-Plot/m-p/499932#M17042</link>
      <description>&lt;P&gt;TINVER is the ODS output file from PROC LIFETEST&lt;/P&gt;&lt;P&gt;SurvivalPlot = tinterv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then the stratum is recoded to the actual treatment names. I cannot send the data as they are confidential.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 15:34:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Survival-PLots-with-SG-Plot/m-p/499932#M17042</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2018-09-28T15:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Survival PLots with SG Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Survival-PLots-with-SG-Plot/m-p/499934#M17043</link>
      <description>&lt;P&gt;Use fake data from the documentation then. Or something along those lines.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10429"&gt;@Doug____&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;TINVER is the ODS output file from PROC LIFETEST&lt;/P&gt;
&lt;P&gt;SurvivalPlot = tinterv&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then the stratum is recoded to the actual treatment names. I cannot send the data as they are confidential.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 15:35:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Survival-PLots-with-SG-Plot/m-p/499934#M17043</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-28T15:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Survival PLots with SG Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Survival-PLots-with-SG-Plot/m-p/500465#M17065</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Did you see my suggestion to use TITLE= to add a header for the XAXISTABLE?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to have your legends list your treatments and then have a single row for censored (like in the macro that I linked to you), then you can do the following trick:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=tinterv dattrmap=myattrmap ;

step x=time y=survival / group=stratuma lineattrs=(thickness=1.75px) name='s' attrid = myid;

&lt;STRONG&gt;/**Make a non-grouped plot that you can control the legend label and color on.  Gets masked by the colored one afterwards.**/
scatter x=time y=censored / name='c' markerattrs=(color=black size=0pt) legendlabel="Censored";
&lt;/STRONG&gt;
scatter x=time y=censored / group=stratuma attrid = myid datalabelattrs =(family = "Courier New" size = 9);

xaxistable atrisk / labelattrs = (family="Courier New" size = 9) label x=tatrisk class=stratuma location=outside position = bottom valueattrs = (family= "Courier New" size = 9) &lt;STRONG&gt;title="Patients-at-Risk";&lt;/STRONG&gt;

keylegend "s"  "c"/ location=inside position = topright valueattrs = (family = "Courier New" size = 9) across=1 autoitemsize;

yaxis min=0 labelattrs=(family="Courier New" size = 9);

xaxis labelattrs =(family = "Courier New" size = 9) values=(0 to 300 by 60);  

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I make a non-grouped plot of the censors that you can then add to the legend to have a single row legend item.&amp;nbsp; Legendlabel lets me assign the text to be used in the legend (e.g. "Censored").&amp;nbsp; AUTOITEMSIZE will match the symbol size to the font size.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I remove the name option from the original scatter so that this one won't go into the legend.&amp;nbsp; I added the step plot to the legend statement to include your treatment values above the censored legend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added the title= option to the xaxistable to give a header for the patients-at-risk.&amp;nbsp; There might be an option to align this differently, I don't know off hand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My NEWSURV macro an do all of this for you as well.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 16:08:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Survival-PLots-with-SG-Plot/m-p/500465#M17065</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2018-10-01T16:08:02Z</dc:date>
    </item>
  </channel>
</rss>

