<?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: Time scale on x-axis with PROC SGPLOT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Time-scale-on-x-axis-with-PROC-SGPLOT/m-p/641960#M191441</link>
    <description>&lt;P&gt;I think you need to rephrase your question or requirement.&lt;/P&gt;
&lt;P&gt;Your question "how to get uneven space via PROC SGPLOT by using values= ( ) " is answered in your code with the values statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you may be having more a question about displaying specific text but it isn't clear if that is the case.&lt;/P&gt;
&lt;P&gt;Likely a custom format for the values you want to display the desired text with an Other= ' ' to display blanks.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Apr 2020 14:23:08 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-04-22T14:23:08Z</dc:date>
    <item>
      <title>Time scale on x-axis with PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Time-scale-on-x-axis-with-PROC-SGPLOT/m-p/641953#M191440</link>
      <description>&lt;DIV class="branch"&gt;&lt;DIV class="c"&gt;&lt;P&gt;In order to get uneven time space as following&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yw2757_1-1587564196766.png" style="width: 528px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38547i1E0BC12003D5E6D4/image-dimensions/528x66?v=v2" width="528" height="66" role="button" title="yw2757_1-1587564196766.png" alt="yw2757_1-1587564196766.png" /&gt;&lt;/span&gt;&lt;P&gt;I manually type&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;Xaxis Label= "Analysis Visits" &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;Type= discrete &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;Values= (12 to 28 by 1)&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;Valuesdisplay= ("Week 12" "Week 13" "" "" "Week 16" "" "" "" "Week 20" "" "" "" "Week 24" "" "" "" "Week 28 (Follow-up)");&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;However, I do find&amp;nbsp;&lt;/P&gt;&lt;PRE class="sas"&gt;&lt;SPAN&gt;proc sgplot&lt;/SPAN&gt; &lt;SPAN&gt;data&lt;/SPAN&gt;=age;
  scatter &lt;SPAN&gt;x&lt;/SPAN&gt;=age y=weight;
  xaxis grid values=&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;6&lt;/SPAN&gt; &lt;SPAN&gt;9&lt;/SPAN&gt; &lt;SPAN&gt;13&lt;/SPAN&gt; &lt;SPAN&gt;16&lt;/SPAN&gt; &lt;SPAN&gt;19&lt;/SPAN&gt; &lt;SPAN&gt;21&lt;/SPAN&gt; &lt;SPAN&gt;25&lt;/SPAN&gt; &lt;SPAN&gt;30&lt;/SPAN&gt; &lt;SPAN&gt;40&lt;/SPAN&gt; &lt;SPAN&gt;50&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; valueshint;
  yaxis grid;
  &lt;SPAN&gt;run&lt;/SPAN&gt;;&lt;/PRE&gt;&lt;P&gt;can provide uneven space automatically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any one can provide suggestions about how to get uneven space via PROC SGPLOT by using values= (&amp;nbsp; )&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Apr 2020 14:10:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Time-scale-on-x-axis-with-PROC-SGPLOT/m-p/641953#M191440</guid>
      <dc:creator>yw2757</dc:creator>
      <dc:date>2020-04-22T14:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Time scale on x-axis with PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Time-scale-on-x-axis-with-PROC-SGPLOT/m-p/641960#M191441</link>
      <description>&lt;P&gt;I think you need to rephrase your question or requirement.&lt;/P&gt;
&lt;P&gt;Your question "how to get uneven space via PROC SGPLOT by using values= ( ) " is answered in your code with the values statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you may be having more a question about displaying specific text but it isn't clear if that is the case.&lt;/P&gt;
&lt;P&gt;Likely a custom format for the values you want to display the desired text with an Other= ' ' to display blanks.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 14:23:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Time-scale-on-x-axis-with-PROC-SGPLOT/m-p/641960#M191441</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-04-22T14:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Time scale on x-axis with PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Time-scale-on-x-axis-with-PROC-SGPLOT/m-p/641970#M191447</link>
      <description>&lt;P&gt;I think a FORMAT statement is probably easiest, but you can also use SYMPUTX in a DATA _NULL_ step to create a macro variable that contains the tick values and the strings to display.&lt;/P&gt;
&lt;P&gt;See the last paragraph "Automating the tick locations and labels" in the article &lt;A href="https://blogs.sas.com/content/iml/2014/07/11/create-custom-tick-marks.html" target="_self"&gt;"Create custom tick marks for axes on the log scale."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 14:38:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Time-scale-on-x-axis-with-PROC-SGPLOT/m-p/641970#M191447</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-04-22T14:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Time scale on x-axis with PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Time-scale-on-x-axis-with-PROC-SGPLOT/m-p/641976#M191451</link>
      <description>&lt;P&gt;Sorry for the confusion. Before I used&lt;/P&gt;&lt;P&gt;values=(12 13 16 20 24 28)&lt;/P&gt;&lt;P&gt;valuesdisplay= ("Week 12", "Week 13", "Week 20", "Week 24", "Week 28")&lt;/P&gt;&lt;P&gt;and SGPLOT offers following result, all space are even. For example, space between week 13 and week 16.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yw2757_0-1587566625675.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38550i6ED90F48FD6BAA3C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yw2757_0-1587566625675.png" alt="yw2757_0-1587566625675.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 14:46:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Time-scale-on-x-axis-with-PROC-SGPLOT/m-p/641976#M191451</guid>
      <dc:creator>yw2757</dc:creator>
      <dc:date>2020-04-22T14:46:21Z</dc:date>
    </item>
  </channel>
</rss>

