<?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: Plotting time series with date and time in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-time-series-with-date-and-time/m-p/228673#M8289</link>
    <description>&lt;P&gt;Do you really want "&amp;nbsp;I want the last hour of September 29th to connect with the first hour of Sepetmber 28th."&lt;/P&gt;
&lt;P&gt;Did you mean "&amp;nbsp;I want the last hour of September 2&lt;STRONG&gt;8&lt;/STRONG&gt;th to connect with the first hour of Sepetmber 2&lt;STRONG&gt;9&lt;/STRONG&gt;th."?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For continuous plots involving date and time I would ensure that I had a SAS date time variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could make a datetime variably using the DHMS function:&lt;/P&gt;
&lt;P&gt;DT = DHMS(date, hour,0,0);&lt;/P&gt;
&lt;P&gt;in a data step.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Oct 2015 16:52:56 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-10-06T16:52:56Z</dc:date>
    <item>
      <title>Plotting time series with date and time</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-time-series-with-date-and-time/m-p/228645#M8288</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a time series plot that includes dates and hours. I want to show the trend by hour and by date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I have used proce template with data lattice to do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define statgraph Day_Hour;&lt;BR /&gt;begingraph;&lt;BR /&gt;layout gridded / border=false ;&lt;BR /&gt;layout datalattice columnvar=date / headerlabeldisplay=value border=false columnheaders=bottom columnaxisopts=(label="Date" )&lt;BR /&gt;cellwidthmin=10 cellheightmin=10&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;layout prototype /walldisplay=(fill) ;&lt;BR /&gt;seriesplot x=hour y=count&amp;nbsp;/display=(markers) break=false markerattrs=graphdata1(symbol=circlefilled size=9)&lt;BR /&gt;lineattrs=graphdata1;&lt;BR /&gt;endlayout;&lt;BR /&gt;endlayout;&lt;BR /&gt;endlayout;&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hwoever, I want the trend line to connect across days and with data lattice it breaks between each day. I want the last hour of September 29th to connect with the first hour of Sepetmber 28th.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how I can get my trend line to connect, but still show dates and hours.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11997i6EFB7EB72DC58F27/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Timeseries with date and time.PNG" title="Timeseries with date and time.PNG" /&gt;</description>
      <pubDate>Tue, 06 Oct 2015 14:47:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-time-series-with-date-and-time/m-p/228645#M8288</guid>
      <dc:creator>breana_murphy</dc:creator>
      <dc:date>2015-10-06T14:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting time series with date and time</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-time-series-with-date-and-time/m-p/228673#M8289</link>
      <description>&lt;P&gt;Do you really want "&amp;nbsp;I want the last hour of September 29th to connect with the first hour of Sepetmber 28th."&lt;/P&gt;
&lt;P&gt;Did you mean "&amp;nbsp;I want the last hour of September 2&lt;STRONG&gt;8&lt;/STRONG&gt;th to connect with the first hour of Sepetmber 2&lt;STRONG&gt;9&lt;/STRONG&gt;th."?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For continuous plots involving date and time I would ensure that I had a SAS date time variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could make a datetime variably using the DHMS function:&lt;/P&gt;
&lt;P&gt;DT = DHMS(date, hour,0,0);&lt;/P&gt;
&lt;P&gt;in a data step.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 16:52:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-time-series-with-date-and-time/m-p/228673#M8289</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-10-06T16:52:56Z</dc:date>
    </item>
  </channel>
</rss>

