<?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: Controlling time intervals in the x axis in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/474213#M16369</link>
    <description>Thank you, I missed the solution from Ksharp when I frist looked</description>
    <pubDate>Thu, 28 Jun 2018 19:02:05 GMT</pubDate>
    <dc:creator>karlbang</dc:creator>
    <dc:date>2018-06-28T19:02:05Z</dc:date>
    <item>
      <title>Controlling time intervals in the x axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/474069#M16364</link>
      <description>&lt;P&gt;I am trying to make a plot where the x-axis has values from 1 to 52 weeks, but I want to illustrate what the measurement times were:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;xaxis label='Weeks'&lt;BR /&gt;values=("1" "3" "12" "52")&lt;BR /&gt;valuesdisplay=("1" "3" "12" "52")&lt;BR /&gt;LABELATTRS=(size=14) valueattrs=(size=14);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does not give me the expected axis, but rather:&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="axis.png" style="width: 580px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21472i4770D3FF9D0328CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="axis.png" alt="axis.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion ?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 13:34:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/474069#M16364</guid>
      <dc:creator>karlbang</dc:creator>
      <dc:date>2018-06-28T13:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling time intervals in the x axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/474072#M16365</link>
      <description>&lt;P&gt;&lt;SPAN&gt;values=(1 3 12 52)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 13:44:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/474072#M16365</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-06-28T13:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling time intervals in the x axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/474089#M16366</link>
      <description>&lt;P&gt;Try the refline option on the x axis at 1,3,12, and 52. Not sure if it's what you're looking for aesthetically, but it's one option to highlight where those points falls on the x axis. Eg below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.sampledata;
  do _n_=1 to 52;
    week+1;
    value=ranuni(1234);
    output;
  end;
keep week value;
run;

proc sgplot data=work.sampledata;
series x=week y=value;
xaxis values=(0 to 52);
refline 1 3 12 52 /axis=x transparency=0.85 lineattrs=(color=gray pattern=shortdash);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jun 2018 14:42:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/474089#M16366</guid>
      <dc:creator>ChanceTGardener</dc:creator>
      <dc:date>2018-06-28T14:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling time intervals in the x axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/474202#M16367</link>
      <description>&lt;P&gt;Not what I am looking for. I want an x-avis with the numbers 1 3 12 52&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 18:32:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/474202#M16367</guid>
      <dc:creator>karlbang</dc:creator>
      <dc:date>2018-06-28T18:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling time intervals in the x axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/474209#M16368</link>
      <description>&lt;P&gt;Ksharp had the correct answer, but you might also want to add VALUESHINT so that the min/max values of the list do not constrain the data shown:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;xaxis values=(1 3 12 52) valueshint;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;BR /&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 18:55:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/474209#M16368</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-06-28T18:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling time intervals in the x axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/474213#M16369</link>
      <description>Thank you, I missed the solution from Ksharp when I frist looked</description>
      <pubDate>Thu, 28 Jun 2018 19:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/474213#M16369</guid>
      <dc:creator>karlbang</dc:creator>
      <dc:date>2018-06-28T19:02:05Z</dc:date>
    </item>
  </channel>
</rss>

