<?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 to Align axistable display with tickvaluesequence in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634299#M19672</link>
    <description>&lt;P&gt;Upon re-reading, I think you are probably right and I made an incorrect assumption. Sorry for the confusion. Thanks for clarifying.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Mar 2020 23:08:25 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2020-03-23T23:08:25Z</dc:date>
    <item>
      <title>Another option instead of drawtext in proc template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634221#M19662</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to display number of subjects at each visits at the bottom of the plot for a series plot. There are three different cohorts so I need to display three lines&amp;nbsp; of N (number of subjects) one for each cohort. I know the drawtext option but it requires lots of processing and playing around to get proper display. Is there any other option to do this ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 19:11:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634221#M19662</guid>
      <dc:creator>Leo9</dc:creator>
      <dc:date>2020-03-23T19:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Another option instead of drawtext in proc template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634227#M19663</link>
      <description>&lt;P&gt;That is what the AXISTABLE plot was made to do.&amp;nbsp; It has a CLASS option I believe to split into multiple rows and can also be colored differently if need be.&amp;nbsp; You can either use a lattice layout to make a space below your chart, or you can use an INNERMARGIN block within your current layout to include it above your X-axis.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 19:15:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634227#M19663</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2020-03-23T19:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Another option instead of drawtext in proc template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634247#M19664</link>
      <description>&lt;P&gt;The Graphically Speaking blog has many posts that feature the XAXISTABLE statement. Here's one to get started:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2016/07/17/graph-table-with-class/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2016/07/17/graph-table-with-class/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and another that shows a variation&lt;/P&gt;
&lt;P&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;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 19:36:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634247#M19664</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-03-23T19:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Another option instead of drawtext in proc template</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634259#M19665</link>
      <description>&lt;P&gt;Thank you! This works nicely. However, I want to display N for certain visits only which are displayed on x-axis. Right now I am displaying visits on x-axis at 4 week interval using tickvalue sequence. Is there any option like that with axistable to display N ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 20:03:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634259#M19665</guid>
      <dc:creator>Leo9</dc:creator>
      <dc:date>2020-03-23T20:03:36Z</dc:date>
    </item>
    <item>
      <title>How to Align axistable display with tickvaluesequence</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634264#M19666</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am creating a series plot where I am displaying visits in 4 week interval using tickvaluesequence option in proc template. I need to display subject of subjects at each visit for which I am using axistable plot to display. Problem is that axistable is displaying N (number of subjects) for every week instead of every 4 weeks. Is there any option to display, like tickvaluesequence within axistable to display N for selected visits ? Thanks in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 20:20:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634264#M19666</guid>
      <dc:creator>Leo9</dc:creator>
      <dc:date>2020-03-23T20:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Align axistable display with tickvaluesequence</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634267#M19668</link>
      <description>&lt;P&gt;The XAXISTABLE statement in PROC SGPLOT (and the AXISTABLE statement in the GTL) displays the data in the variables that you specify.&amp;nbsp; For example, in SGPLOT the syntax is&lt;/P&gt;
&lt;P&gt;xaxistable NumVisit x=Time class=Cohort;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you should run a DATA step to aggregate the visits and store the 4-week times and totals in new variables NumVisit4 and Time4 for each cohort. Add those variable to the data set that you are plotting and specify the NumVisit4 and Time4 variables in the XAXISTABLE stmt.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 20:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634267#M19668</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-03-23T20:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to Align axistable display with tickvaluesequence</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634269#M19669</link>
      <description>&lt;P&gt;You could either do it in the data step (make a new variable that only has the values you want) or if it is as simple as taking every fourth week and your weeks are numbered sequentially you could use an EVAL function in the template:&lt;/P&gt;
&lt;P&gt;axistable x=eval(ifn(mod(weeks,4)=0,weeks,.)) values=n_patients;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know what your variables are but the above is an example of using the mod function to take the fourth week.&amp;nbsp; Changing the =0 to =1, =2, or =3 will grab a different week in the four week cycle.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 20:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634269#M19669</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2020-03-23T20:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Align axistable display with tickvaluesequence</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634275#M19670</link>
      <description>&lt;P&gt;That's a neat trick, but I think the OP wants to show the sum of the numbers for weeks 1-4 at the location for week 4.&lt;/P&gt;
&lt;P&gt;Show the sum of the numbers for weeks 5-8 at the location for week 8, etc.&lt;/P&gt;
&lt;P&gt;If so, using n_patients won't work. You have to sum the n_patients values.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 20:52:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634275#M19670</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-03-23T20:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to Align axistable display with tickvaluesequence</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634283#M19671</link>
      <description>&lt;P&gt;I'm not seeing anything in their post saying they want to aggregate numbers at certain time points, just that they want to pick which times they are displaying the counts.&amp;nbsp; I'm reading this like someone trying to print patients-at-risk on a survival curve at certain time-points.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 21:30:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634283#M19671</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2020-03-23T21:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to Align axistable display with tickvaluesequence</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634299#M19672</link>
      <description>&lt;P&gt;Upon re-reading, I think you are probably right and I made an incorrect assumption. Sorry for the confusion. Thanks for clarifying.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 23:08:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Another-option-instead-of-drawtext-in-proc-template/m-p/634299#M19672</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-03-23T23:08:25Z</dc:date>
    </item>
  </channel>
</rss>

