<?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: Adding an extra mark on xaxis (sgplot) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Adding-an-extra-mark-on-xaxis-sgplot/m-p/396295#M66522</link>
    <description>&lt;P&gt;ok. I cant see your data, so if it is not structured exactly like this, then modify yourself, but do something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data somedata;
	do x = 0 to 1 by 0.01;
		y = x*2;
		x0=0.9;
		output;
	end;
	if _N_=1 then call symputx('x0', x0);
run;

title "Some Plot";
proc sgplot data=somedata;
	series x=x y=y;
	xaxis values=(0 to 1 by 0.2 &amp;amp;x0);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2017 12:20:27 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2017-09-15T12:20:27Z</dc:date>
    <item>
      <title>Adding an extra mark on xaxis (sgplot)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-an-extra-mark-on-xaxis-sgplot/m-p/396287#M66519</link>
      <description>&lt;P&gt;I want to add an extra tick on X axis to existing values (I don't want to change them). How can I do it, could somebody help me?&lt;/P&gt;&lt;P&gt;There is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc sgplot data=pdf2 noautolegend;
title "Posterior Probability Density - Beta Distribution";
series x=x y=y; /*the curve*/
scatter x=x0 y=pdf0; /*the dot*/
vector x=x0 y=pdf0 /xorigin=x0 yorigin=0 noarrowheads datalabel lineattrs=(color=gray); /*the line below the dot*/
band x=x1 lower=0 upper=y1;
xaxis grid label="x"; 
yaxis grid label="Beta Posterior PDF";
refline 0 / axis=y;
run;&lt;/PRE&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="shot.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15211i9519C2A05CC04C25/image-size/large?v=v2&amp;amp;px=999" role="button" title="shot.PNG" alt="shot.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and here should be the value x0 = 0.9 (not hardcoded 0.9, x0 can&amp;nbsp;be changed). I use SAS 9.3,&amp;nbsp;I am hope for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 11:51:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-an-extra-mark-on-xaxis-sgplot/m-p/396287#M66519</guid>
      <dc:creator>yermapa</dc:creator>
      <dc:date>2017-09-15T11:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an extra mark on xaxis (sgplot)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-an-extra-mark-on-xaxis-sgplot/m-p/396290#M66520</link>
      <description>&lt;P&gt;So you want an extra tick value on the x axis&amp;nbsp;corresponding to the value of x0, but not any other ticks (other than the ones that are already there)?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 12:06:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-an-extra-mark-on-xaxis-sgplot/m-p/396290#M66520</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-09-15T12:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an extra mark on xaxis (sgplot)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-an-extra-mark-on-xaxis-sgplot/m-p/396292#M66521</link>
      <description>Exactly &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; Just this graph with extra 0.9 between 0.8 and 1.0 (x0 has only one value 0.9)</description>
      <pubDate>Fri, 15 Sep 2017 12:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-an-extra-mark-on-xaxis-sgplot/m-p/396292#M66521</guid>
      <dc:creator>yermapa</dc:creator>
      <dc:date>2017-09-15T12:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an extra mark on xaxis (sgplot)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-an-extra-mark-on-xaxis-sgplot/m-p/396295#M66522</link>
      <description>&lt;P&gt;ok. I cant see your data, so if it is not structured exactly like this, then modify yourself, but do something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data somedata;
	do x = 0 to 1 by 0.01;
		y = x*2;
		x0=0.9;
		output;
	end;
	if _N_=1 then call symputx('x0', x0);
run;

title "Some Plot";
proc sgplot data=somedata;
	series x=x y=y;
	xaxis values=(0 to 1 by 0.2 &amp;amp;x0);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 12:20:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-an-extra-mark-on-xaxis-sgplot/m-p/396295#M66522</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-09-15T12:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an extra mark on xaxis (sgplot)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-an-extra-mark-on-xaxis-sgplot/m-p/396296#M66523</link>
      <description>&lt;P&gt;I thought about it but hoped that there is more simple solution (like some statement). Thank you for your reply, looks like I have to use this approach.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 12:27:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-an-extra-mark-on-xaxis-sgplot/m-p/396296#M66523</guid>
      <dc:creator>yermapa</dc:creator>
      <dc:date>2017-09-15T12:27:00Z</dc:date>
    </item>
  </channel>
</rss>

