<?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 How do I plot line graphs for multiple groups with gplot? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-plot-line-graphs-for-multiple-groups-with-gplot/m-p/687238#M33123</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I need advice on how to "plot lines for multiple groups within a sas variable". I used proc lifetest to get output dataset and used proc gplot to produce an rtf file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc lifetest data= abc method=KM outsurv=xyz plot=(s); time duration*censor (1,2); &lt;BR /&gt;strata group ; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The variable "group" has "6 categories" and&amp;nbsp;proc gplot gives me plot points by default so I used symbol statement with i=spline option, but it gave me a line graph for only one group&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the code:&lt;/P&gt;
&lt;P&gt;proc gplot data = xyz; &lt;BR /&gt;symbol1 i=spline; &lt;BR /&gt;plot survival*duration= group / vaxis=axis1 haxis=axis2 legend=legend1;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I get line graphs for all the categories within the group? Thanks.&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;</description>
    <pubDate>Mon, 28 Sep 2020 15:19:10 GMT</pubDate>
    <dc:creator>dr2014</dc:creator>
    <dc:date>2020-09-28T15:19:10Z</dc:date>
    <item>
      <title>How do I plot line graphs for multiple groups with gplot?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-plot-line-graphs-for-multiple-groups-with-gplot/m-p/687238#M33123</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I need advice on how to "plot lines for multiple groups within a sas variable". I used proc lifetest to get output dataset and used proc gplot to produce an rtf file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc lifetest data= abc method=KM outsurv=xyz plot=(s); time duration*censor (1,2); &lt;BR /&gt;strata group ; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The variable "group" has "6 categories" and&amp;nbsp;proc gplot gives me plot points by default so I used symbol statement with i=spline option, but it gave me a line graph for only one group&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the code:&lt;/P&gt;
&lt;P&gt;proc gplot data = xyz; &lt;BR /&gt;symbol1 i=spline; &lt;BR /&gt;plot survival*duration= group / vaxis=axis1 haxis=axis2 legend=legend1;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I get line graphs for all the categories within the group? Thanks.&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;</description>
      <pubDate>Mon, 28 Sep 2020 15:19:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-plot-line-graphs-for-multiple-groups-with-gplot/m-p/687238#M33123</guid>
      <dc:creator>dr2014</dc:creator>
      <dc:date>2020-09-28T15:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot line graphs for multiple groups with gplot?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-plot-line-graphs-for-multiple-groups-with-gplot/m-p/687245#M33124</link>
      <description>I would recommend using SGPLOT instead of GPLOT to graph your data. SG procedures produce higher quality graphics, is simpler to code IMO, and have more options to customize your graphics. &lt;BR /&gt;&lt;BR /&gt;Here's some examples of SGPLOT code and survival curves&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2018/02/19/survival-plot-twist-using-sgplot-procedure/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2018/02/19/survival-plot-twist-using-sgplot-procedure/&lt;/A&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:28:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-plot-line-graphs-for-multiple-groups-with-gplot/m-p/687245#M33124</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-09-28T15:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot line graphs for multiple groups with gplot?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-plot-line-graphs-for-multiple-groups-with-gplot/m-p/687288#M33126</link>
      <description>Thank you for the recommendation.</description>
      <pubDate>Mon, 28 Sep 2020 17:33:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-plot-line-graphs-for-multiple-groups-with-gplot/m-p/687288#M33126</guid>
      <dc:creator>dr2014</dc:creator>
      <dc:date>2020-09-28T17:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot line graphs for multiple groups with gplot?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-plot-line-graphs-for-multiple-groups-with-gplot/m-p/687456#M33138</link>
      <description>&lt;P&gt;If you submit&lt;/P&gt;
&lt;P&gt;ODS GRAPHICS ON;&lt;/P&gt;
&lt;P&gt;before your PROC LIFETEST call, the procedure should produce a survival plot automatically.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:16:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-plot-line-graphs-for-multiple-groups-with-gplot/m-p/687456#M33138</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-09-29T10:16:03Z</dc:date>
    </item>
  </channel>
</rss>

