<?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: Customize x-axis (DateTime) to see both plots clearly - Line series plot with groups in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Customize-x-axis-DateTime-to-see-both-plots-clearly-Line-series/m-p/370625#M12803</link>
    <description>&lt;P&gt;When x values don't overlap any graph will have a similar behavior. this is aggrevated a bit by the relatively large numeric values involved with datetime values and the SAS default axis generator&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you attempting to compare time of day behavior on different days? If so I suggest modifying your data to have a time variable: TV= timepart(datetimevariablename) in a data step and plot that with your category variable as a group. Or some sort of scale shift.&lt;/P&gt;
&lt;P&gt;Another option might be to use a sgpanel, panel by the category variable, columns=1 and use uniscale=Row to allow the x axis values to display differently in each panel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your comparing to two datetimes with a gap of a couple days is similar to the behavior you would get if you plotted data from a few dates a coupls centuries apart. So some sort of rescaling is like needed to make a useable&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2017 15:03:53 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-06-26T15:03:53Z</dc:date>
    <item>
      <title>Customize x-axis (DateTime) to see both plots clearly - Line series plot with groups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Customize-x-axis-DateTime-to-see-both-plots-clearly-Line-series/m-p/370606#M12801</link>
      <description>&lt;P&gt;SAS 9.4 - I have a data&amp;nbsp;table that I am trying to visualize. &amp;nbsp;The x-axis is a DateTime field. &amp;nbsp;The table contains aggregate data with two sets from different dates. &amp;nbsp;When I attempt to plot the series using a category variable, the two series are spread far apart, they appear too zoomed out. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dates of the sets are three days apart, and I can see on the x-axis there is a tick for every 12 hours, but the values for the y-axis are&amp;nbsp;per second. &amp;nbsp;Meaning each second there is a y value but only for about a 20 minute stretch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see in the screenshot the&amp;nbsp;plots are so small you can't really see them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I fix this so that you can see both series up close and not so small and spread apart? Please know that I can provide more information if needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Thanks!&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13985iD86F75FE8A23B4B1/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="sas-problem.PNG" title="sas-problem.PNG" /&gt;</description>
      <pubDate>Mon, 26 Jun 2017 14:31:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Customize-x-axis-DateTime-to-see-both-plots-clearly-Line-series/m-p/370606#M12801</guid>
      <dc:creator>BC33</dc:creator>
      <dc:date>2017-06-26T14:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Customize x-axis (DateTime) to see both plots clearly - Line series plot with groups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Customize-x-axis-DateTime-to-see-both-plots-clearly-Line-series/m-p/370621#M12802</link>
      <description>&lt;P&gt;Usually you use a broken Y axis, but in this case maybe a broken X axis?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2015/09/02/broken-axis-redux/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2015/09/02/broken-axis-redux/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 14:52:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Customize-x-axis-DateTime-to-see-both-plots-clearly-Line-series/m-p/370621#M12802</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-26T14:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Customize x-axis (DateTime) to see both plots clearly - Line series plot with groups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Customize-x-axis-DateTime-to-see-both-plots-clearly-Line-series/m-p/370625#M12803</link>
      <description>&lt;P&gt;When x values don't overlap any graph will have a similar behavior. this is aggrevated a bit by the relatively large numeric values involved with datetime values and the SAS default axis generator&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you attempting to compare time of day behavior on different days? If so I suggest modifying your data to have a time variable: TV= timepart(datetimevariablename) in a data step and plot that with your category variable as a group. Or some sort of scale shift.&lt;/P&gt;
&lt;P&gt;Another option might be to use a sgpanel, panel by the category variable, columns=1 and use uniscale=Row to allow the x axis values to display differently in each panel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your comparing to two datetimes with a gap of a couple days is similar to the behavior you would get if you plotted data from a few dates a coupls centuries apart. So some sort of rescaling is like needed to make a useable&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 15:03:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Customize-x-axis-DateTime-to-see-both-plots-clearly-Line-series/m-p/370625#M12803</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-26T15:03:53Z</dc:date>
    </item>
  </channel>
</rss>

