<?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: How can I make a skipping x-axis in sgplot with non-uniform spacing? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835066#M330108</link>
    <description>&lt;P&gt;Thanks for the screenshot and the description. Same here with SAS 9.4M5 if I label the tick marks "Value 1", "Value 2", ... instead of 1, 2, ... (using a format).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to add the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/p07m2vpyq75fgan14m6g5pphnwlr.htm#n1bkk2fwzh9l7in1que4qmkricsx" target="_blank" rel="noopener"&gt;FITPOLICY= option&lt;/A&gt;, e.g.,&lt;/P&gt;
&lt;PRE&gt;fitpolicy=rotate&lt;/PRE&gt;
&lt;P&gt;to the XAXIS statement in order to make the VALUESROTATE= option effective or to save space horizontally in other ways. See the various possible values of the FITPOLICY= option in the documentation.&lt;/P&gt;</description>
    <pubDate>Sun, 25 Sep 2022 16:34:58 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2022-09-25T16:34:58Z</dc:date>
    <item>
      <title>How can I make a skipping x-axis in sgplot with non-uniform spacing?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835009#M330071</link>
      <description>&lt;P&gt;I would like to create a graph similar to the one on the following page.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/sgplot-vline-jitter-standard-error-bars/td-p/457327" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/sgplot-vline-jitter-standard-error-bars/td-p/457327&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In gplot, I can specify a skipping value with values in axis2 of goptions, but&lt;BR /&gt;value = ('1' '4' '12' '14' '32' '34')&lt;BR /&gt;In sgplot, specifying by xaxis does not work.&lt;BR /&gt;Specifically, I have values in the x-axis that are not regular, like 1,4,12,14,32,34.&lt;BR /&gt;I do not want to display any other labels.&lt;BR /&gt;(With sgplot, if I only display certain labels, they will be equally spaced, but I want to avoid this. I would like them to be displayed on the same scale as the number line.)&lt;/P&gt;
&lt;P&gt;How should we handle this in sgplot?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 17:35:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835009#M330071</guid>
      <dc:creator>sskt</dc:creator>
      <dc:date>2022-09-24T17:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make a skipping x-axis in sgplot with non-uniform spacing?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835014#M330074</link>
      <description>&lt;P&gt;A combination of Min/Max/Values option on the XAXIS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.class;
scatter x=age y=weight;
xaxis min=0 max=20 values=(1, 4, 12, 14);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/263725"&gt;@sskt&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I would like to create a graph similar to the one on the following page.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/sgplot-vline-jitter-standard-error-bars/td-p/457327" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/Graphics-Programming/sgplot-vline-jitter-standard-error-bars/td-p/457327&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In gplot, I can specify a skipping value with values in axis2 of goptions, but&lt;BR /&gt;value = ('1' '4' '12' '14' '32' '34')&lt;BR /&gt;In sgplot, specifying by xaxis does not work.&lt;BR /&gt;Specifically, I have values in the x-axis that are not regular, like 1,4,12,14,32,34.&lt;BR /&gt;I do not want to display any other labels.&lt;BR /&gt;(With sgplot, if I only display certain labels, they will be equally spaced, but I want to avoid this. I would like them to be displayed on the same scale as the number line.)&lt;/P&gt;
&lt;P&gt;How should we handle this in sgplot?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 18:59:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835014#M330074</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-09-24T18:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make a skipping x-axis in sgplot with non-uniform spacing?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835026#M330081</link>
      <description>&lt;P&gt;If your variable that the " value = ('1' '4' '12' '14' '32' '34') " represents is actually a character valued variable you have to go to significant work to get values to sort properly as "4" is greater than "12" in character values.&lt;/P&gt;
&lt;P&gt;And since Character values are treated as categories there is no proportional space that appears between them. Your values would be treated like they were 'A' 'B' 'C' as "distance" between values is not a concept for character in Sgplot.&lt;/P&gt;
&lt;P&gt;You likely need to reconsider your data to make a numeric variabl before plotting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/263725"&gt;@sskt&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I would like to create a graph similar to the one on the following page.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/sgplot-vline-jitter-standard-error-bars/td-p/457327" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/Graphics-Programming/sgplot-vline-jitter-standard-error-bars/td-p/457327&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In gplot, I can specify a skipping value with values in axis2 of goptions, but&lt;BR /&gt;value = ('1' '4' '12' '14' '32' '34')&lt;BR /&gt;In sgplot, specifying by xaxis does not work.&lt;BR /&gt;Specifically, I have values in the x-axis that are not regular, like 1,4,12,14,32,34.&lt;BR /&gt;I do not want to display any other labels.&lt;BR /&gt;(With sgplot, if I only display certain labels, they will be equally spaced, but I want to avoid this. I would like them to be displayed on the same scale as the number line.)&lt;/P&gt;
&lt;P&gt;How should we handle this in sgplot?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 22:41:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835026#M330081</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-09-24T22:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make a skipping x-axis in sgplot with non-uniform spacing?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835037#M330089</link>
      <description>&lt;P&gt;My code is as follows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=data;
vline visit /
response=bp
group=group
stat=mean
markers
limitstat=stddev;
format group groupf.;
xaxis min=0 max=15 values=(1, 4, 12, 14);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 25 Sep 2022 06:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835037#M330089</guid>
      <dc:creator>sskt</dc:creator>
      <dc:date>2022-09-25T06:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make a skipping x-axis in sgplot with non-uniform spacing?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835038#M330090</link>
      <description>&lt;P&gt;Thank you for your response.&lt;BR /&gt;I have tried your plan, but it is still equally spaced, and I would like the graph to be spaced a few lines apart on the x-axis.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 06:58:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835038#M330090</guid>
      <dc:creator>sskt</dc:creator>
      <dc:date>2022-09-25T06:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make a skipping x-axis in sgplot with non-uniform spacing?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835039#M330091</link>
      <description>&lt;P&gt;Thank you for your response.&lt;BR /&gt;The quotation marks are the way to write the goption in gplot.&lt;BR /&gt;For sgplot, writing it as a number without quotation marks does not work.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 07:05:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835039#M330091</guid>
      <dc:creator>sskt</dc:creator>
      <dc:date>2022-09-25T07:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make a skipping x-axis in sgplot with non-uniform spacing?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835042#M330093</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/263725"&gt;@sskt&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the default is a &lt;EM&gt;discrete&lt;/EM&gt; x-axis for VLINE plots (as these are often used with a category variable), hence the equal spacing. But you can override this default by adding the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/p07m2vpyq75fgan14m6g5pphnwlr.htm#n06hiquvbj4li8n1dqk65w9bc0ru" target="_blank" rel="noopener"&gt;TYPE=LINEAR option&lt;/A&gt; to the XAXIS statement. You may also want to add the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/p07m2vpyq75fgan14m6g5pphnwlr.htm#n0amgzqp0hs1tkn1piisbik9emr7" target="_blank" rel="noopener"&gt;VALUESHINT option&lt;/A&gt; to make the existing MIN= and MAX= options effective.&lt;/P&gt;
&lt;PRE&gt;xaxis &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;type=linear&lt;/STRONG&gt;&lt;/FONT&gt; min=0 max=15 values=(1, 4, 12, 14) &lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;valueshint&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;/PRE&gt;</description>
      <pubDate>Sun, 25 Sep 2022 08:21:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835042#M330093</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-09-25T08:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make a skipping x-axis in sgplot with non-uniform spacing?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835045#M330096</link>
      <description>&lt;P&gt;The issue about spacing has been resolved. Thank you.&lt;BR /&gt;I was not aware of these options and could not find out about them, so I am glad I asked here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the labels for the values specified in value are now only partially displayed.&lt;BR /&gt;Is there any way to solve this?&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 11:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835045#M330096</guid>
      <dc:creator>sskt</dc:creator>
      <dc:date>2022-09-25T11:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make a skipping x-axis in sgplot with non-uniform spacing?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835058#M330104</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/263725"&gt;@sskt&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;However, the labels for the values specified in value are now only partially displayed.&lt;BR /&gt;Is there any way to solve this?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Can you show an example (code and screenshot or description) where this happens? It didn't occur with the sample data I used to test my modification of your code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 14:36:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835058#M330104</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-09-25T14:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make a skipping x-axis in sgplot with non-uniform spacing?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835061#M330105</link>
      <description>&lt;P&gt;Regarding the labels being only partially displayed, I am thinking that since they are so long horizontally, if I make them vertical, they will all be displayed. (I am getting a Note like "Some of the scale values have been thinned out").&lt;BR /&gt;My version of SAS is M6 and the labels are still horizontal even with valuesrotate=vertical. How can I make them vertical?&lt;/P&gt;
&lt;P&gt;The images are confidential and cannot be displayed, but I will post some of them.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75554i71C69D4B085577C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 15:48:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835061#M330105</guid>
      <dc:creator>sskt</dc:creator>
      <dc:date>2022-09-25T15:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make a skipping x-axis in sgplot with non-uniform spacing?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835066#M330108</link>
      <description>&lt;P&gt;Thanks for the screenshot and the description. Same here with SAS 9.4M5 if I label the tick marks "Value 1", "Value 2", ... instead of 1, 2, ... (using a format).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to add the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/p07m2vpyq75fgan14m6g5pphnwlr.htm#n1bkk2fwzh9l7in1que4qmkricsx" target="_blank" rel="noopener"&gt;FITPOLICY= option&lt;/A&gt;, e.g.,&lt;/P&gt;
&lt;PRE&gt;fitpolicy=rotate&lt;/PRE&gt;
&lt;P&gt;to the XAXIS statement in order to make the VALUESROTATE= option effective or to save space horizontally in other ways. See the various possible values of the FITPOLICY= option in the documentation.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 16:34:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835066#M330108</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-09-25T16:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make a skipping x-axis in sgplot with non-uniform spacing?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835101#M330128</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/263725"&gt;@sskt&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for your response.&lt;BR /&gt;The quotation marks are the way to write the goption in gplot.&lt;BR /&gt;For sgplot, writing it as a number without quotation marks does not work.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;A counter example where values as numbers without quotes work quite well:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=sashelp.class;
  scatter x=height y=weight;
  xaxis values=(50, 53, 60, 68);
run;&lt;/PRE&gt;
&lt;P&gt;So, when you claim that something "does not work" you need to prove by providing actual data and complete code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used numbers without quotes on Axis statements all the time. So without complete Axis definition and Gplot code plus data I have to question your statement on that basis as well.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 05:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-make-a-skipping-x-axis-in-sgplot-with-non-uniform/m-p/835101#M330128</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-09-26T05:27:18Z</dc:date>
    </item>
  </channel>
</rss>

