<?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: gplot order and dates in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/gplot-order-and-dates/m-p/65440#M2226</link>
    <description>hi ... the following makes  a data set with 1000 dates then does a histogram&lt;BR /&gt;
of the dates grouped by year-quarter&lt;BR /&gt;
&lt;BR /&gt;
I made the assumption that when you said PLOT you meant CHART since&lt;BR /&gt;
I'm not quite sure how a PLOT fits with grouping data on the X-AXIS&lt;BR /&gt;
&lt;BR /&gt;
so, here's a suggestion&lt;BR /&gt;
[pre]&lt;BR /&gt;
* make some fake data;&lt;BR /&gt;
data x;&lt;BR /&gt;
do j=1 to 1000;&lt;BR /&gt;
   dt = ceil(750*ranuni(123)) + 15000;&lt;BR /&gt;
   output;&lt;BR /&gt;
end;&lt;BR /&gt;
format dt monyy.;&lt;BR /&gt;
drop j;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
* look at the data ... table of MONTH-YEAR;&lt;BR /&gt;
proc freq data=x;&lt;BR /&gt;
table dt;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
* histogram ... dates grouped by quarter within year using YYQ. format;&lt;BR /&gt;
proc gchart data=x;&lt;BR /&gt;
vbar dt / discrete;&lt;BR /&gt;
format dt yyq.;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Fri, 05 Mar 2010 21:41:47 GMT</pubDate>
    <dc:creator>MikeZdeb</dc:creator>
    <dc:date>2010-03-05T21:41:47Z</dc:date>
    <item>
      <title>gplot order and dates</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/gplot-order-and-dates/m-p/65438#M2224</link>
      <description>I have dates in the following format monyy (eg JAN06, FEB06, etc).&lt;BR /&gt;
How do I plot dates from JAN09 to FEB10 by quarter?&lt;BR /&gt;
Thank you.</description>
      <pubDate>Fri, 05 Mar 2010 21:15:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/gplot-order-and-dates/m-p/65438#M2224</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-05T21:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: gplot order and dates</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/gplot-order-and-dates/m-p/65439#M2225</link>
      <description>Share a sample of your SAS data set that you want to plot/chart.  And you will want your SAS variables to be NUMERIC, DATE variables, not tranformed character-string representations of a mmmyy flavor.&lt;BR /&gt;
&lt;BR /&gt;
For SAS 9.2, consider XAXIS and INTERVAL= option.  Or option to derive a quarter-start date variable and use the SAS output FORMAT to display as needed.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/61948/HTML/default/xaxis-stmt.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatproc/61948/HTML/default/xaxis-stmt.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 05 Mar 2010 21:32:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/gplot-order-and-dates/m-p/65439#M2225</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-03-05T21:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: gplot order and dates</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/gplot-order-and-dates/m-p/65440#M2226</link>
      <description>hi ... the following makes  a data set with 1000 dates then does a histogram&lt;BR /&gt;
of the dates grouped by year-quarter&lt;BR /&gt;
&lt;BR /&gt;
I made the assumption that when you said PLOT you meant CHART since&lt;BR /&gt;
I'm not quite sure how a PLOT fits with grouping data on the X-AXIS&lt;BR /&gt;
&lt;BR /&gt;
so, here's a suggestion&lt;BR /&gt;
[pre]&lt;BR /&gt;
* make some fake data;&lt;BR /&gt;
data x;&lt;BR /&gt;
do j=1 to 1000;&lt;BR /&gt;
   dt = ceil(750*ranuni(123)) + 15000;&lt;BR /&gt;
   output;&lt;BR /&gt;
end;&lt;BR /&gt;
format dt monyy.;&lt;BR /&gt;
drop j;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
* look at the data ... table of MONTH-YEAR;&lt;BR /&gt;
proc freq data=x;&lt;BR /&gt;
table dt;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
* histogram ... dates grouped by quarter within year using YYQ. format;&lt;BR /&gt;
proc gchart data=x;&lt;BR /&gt;
vbar dt / discrete;&lt;BR /&gt;
format dt yyq.;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 05 Mar 2010 21:41:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/gplot-order-and-dates/m-p/65440#M2226</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2010-03-05T21:41:47Z</dc:date>
    </item>
  </channel>
</rss>

