<?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: Categorical Date Variables in Line Plot in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Categorical-Date-Variables-in-Line-Plot/m-p/57776#M16108</link>
    <description>Not really and it depends.  The "dynamic" part would need to be your own thought / code process based on the input data to be charted, as you have conveyed.  And you would need to generate explicit (or range-of) values to plot on a given axis.  Most likely that would be DATA step code and SAS statements to generate SAS code dynamically which you would then invoke.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Thu, 30 Oct 2008 18:10:14 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2008-10-30T18:10:14Z</dc:date>
    <item>
      <title>Categorical Date Variables in Line Plot</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Categorical-Date-Variables-in-Line-Plot/m-p/57771#M16103</link>
      <description>Is it possible in PROC GPLOT to plot dates along the x-axis as categorical variables instead of time-series?  By doing this I would want dates that are 1 week, 1 month, or 1 year apart from each other to be plotted next to each other with the same amount of spacing between them.&lt;BR /&gt;
&lt;BR /&gt;
I am doing this in SAS Enterprise Guide 4.1.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Brad</description>
      <pubDate>Wed, 29 Oct 2008 14:14:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Categorical-Date-Variables-in-Line-Plot/m-p/57771#M16103</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-29T14:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical Date Variables in Line Plot</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Categorical-Date-Variables-in-Line-Plot/m-p/57772#M16104</link>
      <description>I recall defining axis or midpoints with [pre]   "01jan2006"d to "01jan2008"d   by month  [/pre] which produces an unimportant message that the intervals are not equal.&lt;BR /&gt;
&lt;BR /&gt;
Would something like that help ?&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
      <pubDate>Wed, 29 Oct 2008 19:49:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Categorical-Date-Variables-in-Line-Plot/m-p/57772#M16104</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2008-10-29T19:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical Date Variables in Line Plot</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Categorical-Date-Variables-in-Line-Plot/m-p/57773#M16105</link>
      <description>Thanks for the reply Peter,&lt;BR /&gt;
I tried this and all I get is the same output as before, only now it only goes from Jan '06 to Jan '08.  &lt;BR /&gt;
&lt;BR /&gt;
My problem is that if I have 10 datapoints total that are being plotted and 6 points are in january '06 and my next 4 datapoints are in November '08 I'm getting a long straight line from the last datapoint in January until my first data point in November.  I would like for this to plot the 10 points equidistant from each other instead of putting the time gap in between them (not sure if this is possible).</description>
      <pubDate>Wed, 29 Oct 2008 20:46:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Categorical-Date-Variables-in-Line-Plot/m-p/57773#M16105</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-29T20:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical Date Variables in Line Plot</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Categorical-Date-Variables-in-Line-Plot/m-p/57774#M16106</link>
      <description>Another option is to code your axis datapoints explicitly, noting that you can code them as a date literal, as well as stated previously with a date-range.  Obviously, choosing the values to plot on the axis will be based on your own data and some calculated decision for your axis requirements.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 30 Oct 2008 02:21:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Categorical-Date-Variables-in-Line-Plot/m-p/57774#M16106</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-10-30T02:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical Date Variables in Line Plot</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Categorical-Date-Variables-in-Line-Plot/m-p/57775#M16107</link>
      <description>Is there a way to code this dynamically so the dates to plot would change each time the process is run?  I wont really know the exact dates that are going to need to be plotted, and there could be hundreds of them.&lt;BR /&gt;
Thanks</description>
      <pubDate>Thu, 30 Oct 2008 12:54:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Categorical-Date-Variables-in-Line-Plot/m-p/57775#M16107</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-30T12:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical Date Variables in Line Plot</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Categorical-Date-Variables-in-Line-Plot/m-p/57776#M16108</link>
      <description>Not really and it depends.  The "dynamic" part would need to be your own thought / code process based on the input data to be charted, as you have conveyed.  And you would need to generate explicit (or range-of) values to plot on a given axis.  Most likely that would be DATA step code and SAS statements to generate SAS code dynamically which you would then invoke.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 30 Oct 2008 18:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Categorical-Date-Variables-in-Line-Plot/m-p/57776#M16108</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-10-30T18:10:14Z</dc:date>
    </item>
  </channel>
</rss>

