<?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: How do I zoom in the survival graph with many group for analysis in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/777220#M22207</link>
    <description>&lt;P&gt;May also want to set the graph to make a wider display using Ods graphics /width = &amp;lt;something&amp;gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or create a data set and use that data for SGPLOT where you can apply more controls.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Oct 2021 09:49:59 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-10-29T09:49:59Z</dc:date>
    <item>
      <title>How do I zoom in the survival graph with many group for analysis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/777163#M22204</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created a survival graph with multiple groups as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="S_RAVI_0-1635478381326.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65178i507D920691E0CC8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="S_RAVI_0-1635478381326.png" alt="S_RAVI_0-1635478381326.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you look here it is a bit clustered at the top of the graph.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any procedure or way to zoom the graph? so can analyze properly.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS PDF file='survival_Ethnicity white race by SES.pdf';
ods graphics on / imagefmt=png imagename= "Surival for Ethnicity by White Race and SES";
proc lifetest data = adsl3 method=KM plots=s(test) 
		timelist = 0 1 2 5 10 15 20 25 30 CONFTYPE= linear;
	time Years*death(0);
	strata race_ses_white;
title1 "Overall Survival Ethnicity by White Race by SES";
run ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Oct 2021 03:58:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/777163#M22204</guid>
      <dc:creator>RAVI2000</dc:creator>
      <dc:date>2021-10-29T03:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I zoom in the survival graph with many group for analysis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/777167#M22205</link>
      <description>height= option at ods graphics can modify the height of graph.&lt;BR /&gt;And locate the legend at right bottom inside the axis area may helps, too.</description>
      <pubDate>Fri, 29 Oct 2021 05:13:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/777167#M22205</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2021-10-29T05:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I zoom in the survival graph with many group for analysis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/777220#M22207</link>
      <description>&lt;P&gt;May also want to set the graph to make a wider display using Ods graphics /width = &amp;lt;something&amp;gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or create a data set and use that data for SGPLOT where you can apply more controls.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 09:49:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/777220#M22207</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-10-29T09:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I zoom in the survival graph with many group for analysis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/777262#M22208</link>
      <description>Check this macro and option "height=7in" :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Kaplan-Meier-Survival-Plotting-Macro-NEWSURV/ta-p/479747" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Kaplan-Meier-Survival-Plotting-Macro-NEWSURV/ta-p/479747&lt;/A&gt;</description>
      <pubDate>Fri, 29 Oct 2021 12:28:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/777262#M22208</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-10-29T12:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I zoom in the survival graph with many group for analysis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/778002#M22225</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
options nodate nonumber; 
ods escapechar='^';
ods listing close;
ods graphics on;
ods output survivalplot = sj.survplot;
proc lifetest data = sj.adsl3 method = km plots=s(test) 
		timelist = 0 1 2 5 10 15 20 25 30 conftype = linear;
	time years * death(0);
	strata ses;
run;


ods tagsets.rtf file = "/home/Projects/programs/exhibit_01.rtf";
ods graphics on / height = 8in width = 9in;
title1 j=c h=12pt font = arial "Overall Survival by SES";

proc sgplot data = sj.survplot;
		step x=time y=survival /group=stratum name='s' lineattrs=(pattern=solid);
	xaxis label="Years" values=(0 to 5 by 1);
	yaxis label="Survival Probability" values=(0 to 1 by 0.2);
	scatter x=time y=censored / markerattrs=(symbol=plus) name='c';
	scatter x=time y=censored / markerattrs=(symbol=plus) group=stratum;
	keylegend 'c'/location=inside position=topright;
	keylegend 's'/location=inside position=bottomleft;
run; 

ods tagsets.rtf close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have given height and width option in ODS but still not getting desired output zoomed.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="S_RAVI_0-1635880000129.png" style="width: 489px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65329i017FC58239EC1BD3/image-dimensions/489x436?v=v2" width="489" height="436" role="button" title="S_RAVI_0-1635880000129.png" alt="S_RAVI_0-1635880000129.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I still feel the graph is clustered. Any other options&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/270406"&gt;@whymath&lt;/a&gt;&amp;nbsp;? Thankyou!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 19:08:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/778002#M22225</guid>
      <dc:creator>RAVI2000</dc:creator>
      <dc:date>2021-11-02T19:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I zoom in the survival graph with many group for analysis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/778012#M22227</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/294544"&gt;@RAVI2000&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you can use the MIN option in the YAXIS statement to make the graph go from 0.4 to 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see the example below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nodate nonumber; 
ods escapechar='^';
ods listing close;
ods graphics on;
ods output survivalplot = sj.survplot;
proc lifetest data = sj.adsl3 method = km plots=s(test) 
		timelist = 0 1 2 5 10 15 20 25 30 conftype = linear;
	time years * death(0);
	strata ses;
run;


ods tagsets.rtf file = "/home/Projects/programs/exhibit_01.rtf";
ods graphics on / height = 8in width = 9in;
title1 j=c h=12pt font = arial "Overall Survival by SES";

proc sgplot data = sj.survplot;
		step x=time y=survival /group=stratum name='s' lineattrs=(pattern=solid);
	xaxis label="Years" values=(0 to 5 by 1);
	yaxis label="Survival Probability" values=(0.4 to 1 by 0.2);
	scatter x=time y=censored / markerattrs=(symbol=plus) name='c';
	scatter x=time y=censored / markerattrs=(symbol=plus) group=stratum;
	keylegend 'c'/location=inside position=topright;
	keylegend 's'/location=inside position=bottomleft;
run; 

ods tagsets.rtf close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 19:57:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/778012#M22227</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2021-11-02T19:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I zoom in the survival graph with many group for analysis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/778015#M22228</link>
      <description>To add to this you might want to turn off the censor markers (not plot the SCATTER statements above).  Your graphs have a lot of censor indicators making the lines into what Dr. Therneau would call "Wooly Bear" lines.  If you remove them it will be easier to see the lines for comparison and they aren't adding much information to the plot currently.</description>
      <pubDate>Tue, 02 Nov 2021 20:14:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/778015#M22228</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2021-11-02T20:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I zoom in the survival graph with many group for analysis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/778016#M22229</link>
      <description>Nice to see a shout out to my macro.  &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/294544"&gt;@RAVI2000&lt;/a&gt; if you want to try using it feel free to ask me any questions you may have.</description>
      <pubDate>Tue, 02 Nov 2021 20:15:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/778016#M22229</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2021-11-02T20:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I zoom in the survival graph with many group for analysis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/778017#M22230</link>
      <description>I wonder I cannot remove the censor as this is a Spatial data analysis. I have a lot of data. Please correct me.</description>
      <pubDate>Tue, 02 Nov 2021 20:36:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/778017#M22230</guid>
      <dc:creator>RAVI2000</dc:creator>
      <dc:date>2021-11-02T20:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I zoom in the survival graph with many group for analysis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/778023#M22231</link>
      <description>I don't think they add much information to the plot and make the lines hard to read.  Another option you can do is to add a Number of cumulative censors to the bottom of the graph (like a patient's at risk type of table) if you want to keep track of where and how many censors have occurred.</description>
      <pubDate>Tue, 02 Nov 2021 20:49:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/778023#M22231</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2021-11-02T20:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I zoom in the survival graph with many group for analysis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/778148#M22232</link>
      <description>Maybe could try this :&lt;BR /&gt;&lt;BR /&gt;yaxis label="Survival Probability"   values=(0.5 to 1 by 0.1);</description>
      <pubDate>Wed, 03 Nov 2021 11:49:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/778148#M22232</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-11-03T11:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I zoom in the survival graph with many group for analysis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/778151#M22233</link>
      <description>Your macro is awesome . The problem I meet is can't display Chinese . and I have to use option FONTFAMILY= 宋体 to display Chinese characters .&lt;BR /&gt;&lt;BR /&gt;And I need change "+ Censored" in legend into Chinese "+ 删失" .and I have to modify your macro original code to get that .</description>
      <pubDate>Wed, 03 Nov 2021 11:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/778151#M22233</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-11-03T11:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I zoom in the survival graph with many group for analysis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/778234#M22248</link>
      <description>Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10604"&gt;@djrisks&lt;/a&gt;, &lt;BR /&gt;&lt;BR /&gt;Can you convert this into a macro to generate multiple outputs? meaning how can I give multiple destination files?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Wed, 03 Nov 2021 15:14:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-zoom-in-the-survival-graph-with-many-group-for-analysis/m-p/778234#M22248</guid>
      <dc:creator>RAVI2000</dc:creator>
      <dc:date>2021-11-03T15:14:55Z</dc:date>
    </item>
  </channel>
</rss>

