<?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: xaxistable in sgplot in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/xaxistable-in-sgplot/m-p/864505#M341406</link>
    <description>&lt;P&gt;You need special option GROUPTEXT= GROUPTEXTID= for XAXISTABLE:&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2016/05/30/ctspedia-clinical-graphs-subgrouped-forest-plot/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2016/05/30/ctspedia-clinical-graphs-subgrouped-forest-plot/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1678970026033.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81629i446512A49F5EDFF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1678970026033.png" alt="Ksharp_0-1678970026033.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 12:34:03 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2023-03-16T12:34:03Z</dc:date>
    <item>
      <title>xaxistable in sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/xaxistable-in-sgplot/m-p/864279#M341344</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used sgplot to plot a graph including an xaxistable. The group colors are defined in an attrmap. I want the color of the curves to be the same as groups definde in the xaxistable. How can I do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used attrid=var1, colorgroup=var1 but am not getting it working&amp;nbsp;&lt;/P&gt;
&lt;P&gt;on the step statement I used group=var1 attrid=var1 but on the xaxistable this isn't working&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 14:01:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/xaxistable-in-sgplot/m-p/864279#M341344</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2023-03-15T14:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: xaxistable in sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/xaxistable-in-sgplot/m-p/864314#M341345</link>
      <description>&lt;P&gt;Code&lt;/P&gt;
&lt;P&gt;Contents of the Dattrmap data set&lt;/P&gt;
&lt;P&gt;Data to test the code.&lt;/P&gt;
&lt;P&gt;Any custom format definitions used with the plot variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't define the Dattrmap with enough options there isn't anything for Axistable to use.&lt;/P&gt;
&lt;P&gt;Your code so we know what options you are using.&lt;/P&gt;
&lt;P&gt;Data and formats because we need to see the formatted values of your variables to see if your Dattrmap is correct for the code used.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 14:48:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/xaxistable-in-sgplot/m-p/864314#M341345</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-03-15T14:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: xaxistable in sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/xaxistable-in-sgplot/m-p/864347#M341351</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / reset= all ;
proc sgplot data=PlotData2 dattrmap=myattrmap noborder;

styleattrs axisextent=data;
dropline x=dropx y=dropy / dropto=y;
refline 0 / axis=x;

step x=time y=survival / group=stratum  attrid=stratum lineattrs=(pattern=solid) name='s';
scatter x=time y=censored / markerattrs=(symbol=plus) name='c';
scatter x=time y=censored / markerattrs=(symbol=plus) GROUP=stratum;

xaxistable atrisk / x=tatrisk location=outside class=stratum colorgroup=stratum  attrid=stratum
              valueattrs=(size=7 weight=bold) labelattrs=(size=8) nomissingclass;

yaxis display=(noline noticks);
xaxis label="Time in days";

keylegend 'c' / location=inside position=topright;
keylegend 's' / linelength=20;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is the code and data&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 15:41:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/xaxistable-in-sgplot/m-p/864347#M341351</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2023-03-15T15:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: xaxistable in sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/xaxistable-in-sgplot/m-p/864357#M341356</link>
      <description>&lt;P&gt;Your dattrmap data set has nothing related to TEXTCOLOR. You only&amp;nbsp; set colors for Fillcolor and Linecolor. So markers and text do not have any color values to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Search the Online help for "Reserved Discrete Attribute Map Variables" to find all of the variables possible that can go into the attribute map set.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 16:23:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/xaxistable-in-sgplot/m-p/864357#M341356</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-03-15T16:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: xaxistable in sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/xaxistable-in-sgplot/m-p/864369#M341361</link>
      <description>&lt;P&gt;I got it working for the at risk values (after adding textcolor to the attrmap) but the group names of the atrisk values changed complete to black (I mean here treatment A, B, C, D, E)&lt;/P&gt;
&lt;P&gt;I searched but did not find any attribute variable that defines that&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 16:41:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/xaxistable-in-sgplot/m-p/864369#M341361</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2023-03-15T16:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: xaxistable in sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/xaxistable-in-sgplot/m-p/864505#M341406</link>
      <description>&lt;P&gt;You need special option GROUPTEXT= GROUPTEXTID= for XAXISTABLE:&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2016/05/30/ctspedia-clinical-graphs-subgrouped-forest-plot/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2016/05/30/ctspedia-clinical-graphs-subgrouped-forest-plot/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1678970026033.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81629i446512A49F5EDFF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1678970026033.png" alt="Ksharp_0-1678970026033.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 12:34:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/xaxistable-in-sgplot/m-p/864505#M341406</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-03-16T12:34:03Z</dc:date>
    </item>
  </channel>
</rss>

