<?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: changing x axis values to integers with decimal value-proc sgplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/changing-x-axis-values-to-integers-with-decimal-value-proc/m-p/509591#M17335</link>
    <description>&lt;P&gt;Yes, use the VALUESHINT option, It will display only 1-5, but let the data go beyond either end of your values list:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;xaxis integer values=(1 2 3 4 5) valueshint offsetmax=.01;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Nov 2018 16:22:15 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2018-11-01T16:22:15Z</dc:date>
    <item>
      <title>changing x axis values to integers with decimal value-proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/changing-x-axis-values-to-integers-with-decimal-value-proc/m-p/509583#M17334</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question about proc sgplot. I created a graph which has the probability of an outcome by an x value, and then I added another x series to show the point where the maximum probability is attained. Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=ex dattrmap=attr1;&lt;/P&gt;&lt;P&gt;series x=x_value y=probability/ group=Group linattrs = (thickness=3px) attrid=Group;&lt;/P&gt;&lt;P&gt;series x=max y=probability/group=Group Datalabel=Max markers markerattrs=(symbol=circlefilled size=10px) attrid=Group;&lt;/P&gt;&lt;P&gt;yaxis integer values=(0 to 0.11 by .01);&lt;/P&gt;&lt;P&gt;xaxis integer values=(1 2 3 4 5 5.10) offsetmax=.01;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that I cosmetically need the x axis to show only the values 1 to 5, but then for it in reality to go slightly over 5 to show the point where the probability reaches the maximum (5.10). The code above gives me the x-axis values 1 3 and 5, for some reason. I would like it to say 1 through 5, but still show the point 5.10 on the graph. Does anyone know how to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 16:08:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/changing-x-axis-values-to-integers-with-decimal-value-proc/m-p/509583#M17334</guid>
      <dc:creator>Caetreviop543</dc:creator>
      <dc:date>2018-11-01T16:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: changing x axis values to integers with decimal value-proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/changing-x-axis-values-to-integers-with-decimal-value-proc/m-p/509591#M17335</link>
      <description>&lt;P&gt;Yes, use the VALUESHINT option, It will display only 1-5, but let the data go beyond either end of your values list:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;xaxis integer values=(1 2 3 4 5) valueshint offsetmax=.01;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 16:22:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/changing-x-axis-values-to-integers-with-decimal-value-proc/m-p/509591#M17335</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-11-01T16:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: changing x axis values to integers with decimal value-proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/changing-x-axis-values-to-integers-with-decimal-value-proc/m-p/509617#M17337</link>
      <description>&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That works! Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Emily&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 17:20:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/changing-x-axis-values-to-integers-with-decimal-value-proc/m-p/509617#M17337</guid>
      <dc:creator>Caetreviop543</dc:creator>
      <dc:date>2018-11-01T17:20:37Z</dc:date>
    </item>
  </channel>
</rss>

