<?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 Add value on Y Axis and configure X asis using gplot in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Add-value-on-Y-Axis-and-configure-X-asis-using-gplot/m-p/828513#M327270</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Using gplot for the below graph&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) I want to add the value of reference value on Y-axis which is Y= 0.05. I am unable to find a way to do so.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) on the X axis I want to display only a few tickers values(50, 60, 90, 100, 120, 150, 200).&amp;nbsp; I am using the program below, but it is not working. The log does not give any error.&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="graph.PNG" style="width: 741px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74407i8326240E17605352/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph.PNG" alt="graph.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;goptions reset=all ;&lt;/P&gt;&lt;P&gt;axis1 order = (0 to 1 by 0.25) offset = (3,0) label = (a=90 'Power') minor=none value=(h=0.7 t=0.05);&lt;/P&gt;&lt;P&gt;axis2 order=(50 to 210 by 10 )&lt;BR /&gt;major= none minor = none&lt;BR /&gt;label =(h= 1.0 'Sample size')&lt;BR /&gt;value= (h=0.7 t=50 '' t=60 '' t=90 '' t=100 '' t=120 '' t=150 '' t=200);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;symbol1 i = join c = black l=1 value=dot;&lt;BR /&gt;symbol2 i = join c = red l=2 value=star ;&lt;BR /&gt;symbol3 i = join c = blue l=7 value=square;&lt;BR /&gt;symbol4 i = join c = vilg l=4 value=special;&lt;BR /&gt;symbol5 i = join c = purple l=5 value=special;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;proc gplot data = longfintest;&lt;BR /&gt;*by prev ppv0;&lt;BR /&gt;plot power*n=test/ VAXIS=axis1 haxis=axis2 ;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;ods graphics off;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Desired Axis is as below&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Axis.jpeg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74408i6FFBB459D3E7FF2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Axis.jpeg" alt="Axis.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Aug 2022 20:49:40 GMT</pubDate>
    <dc:creator>roshni04</dc:creator>
    <dc:date>2022-08-12T20:49:40Z</dc:date>
    <item>
      <title>Add value on Y Axis and configure X asis using gplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-value-on-Y-Axis-and-configure-X-asis-using-gplot/m-p/828513#M327270</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Using gplot for the below graph&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) I want to add the value of reference value on Y-axis which is Y= 0.05. I am unable to find a way to do so.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) on the X axis I want to display only a few tickers values(50, 60, 90, 100, 120, 150, 200).&amp;nbsp; I am using the program below, but it is not working. The log does not give any error.&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="graph.PNG" style="width: 741px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74407i8326240E17605352/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph.PNG" alt="graph.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;goptions reset=all ;&lt;/P&gt;&lt;P&gt;axis1 order = (0 to 1 by 0.25) offset = (3,0) label = (a=90 'Power') minor=none value=(h=0.7 t=0.05);&lt;/P&gt;&lt;P&gt;axis2 order=(50 to 210 by 10 )&lt;BR /&gt;major= none minor = none&lt;BR /&gt;label =(h= 1.0 'Sample size')&lt;BR /&gt;value= (h=0.7 t=50 '' t=60 '' t=90 '' t=100 '' t=120 '' t=150 '' t=200);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;symbol1 i = join c = black l=1 value=dot;&lt;BR /&gt;symbol2 i = join c = red l=2 value=star ;&lt;BR /&gt;symbol3 i = join c = blue l=7 value=square;&lt;BR /&gt;symbol4 i = join c = vilg l=4 value=special;&lt;BR /&gt;symbol5 i = join c = purple l=5 value=special;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;proc gplot data = longfintest;&lt;BR /&gt;*by prev ppv0;&lt;BR /&gt;plot power*n=test/ VAXIS=axis1 haxis=axis2 ;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;ods graphics off;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Desired Axis is as below&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Axis.jpeg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74408i6FFBB459D3E7FF2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Axis.jpeg" alt="Axis.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 20:49:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-value-on-Y-Axis-and-configure-X-asis-using-gplot/m-p/828513#M327270</guid>
      <dc:creator>roshni04</dc:creator>
      <dc:date>2022-08-12T20:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Add value on Y Axis and configure X asis using gplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-value-on-Y-Axis-and-configure-X-asis-using-gplot/m-p/828517#M327272</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/431509"&gt;@roshni04&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Using gplot for the below graph&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) I want to add the value of reference value on Y-axis which is Y= 0.05. I am unable to find a way to do so.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How about the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/graphref/n0l4536v5ljgrvn1875la9n7gjjp.htm#p1thhjuhl7cffvn1txy1lt6u9g8xa" target="_self"&gt;VREF= option&lt;/A&gt; of the PLOT statement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;2) on the X axis I want to display only a few tickers values(50, 60, 90, 100, 120, 150, 200).&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/graphref/n0l4536v5ljgrvn1875la9n7gjjp.htm#p107jss24obwltn0zamblzw7s1oo" target="_self"&gt;HAXIS= option&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;I also want to label 50 as (20,30).&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't understand this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;I am using the program below, but it is not working.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your future benefit, but also for this thread, please do not say "it is not working" and then provide no other information. We can't help you. We need to know what part is not working, we need explanation, we need information.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 20:41:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-value-on-Y-Axis-and-configure-X-asis-using-gplot/m-p/828517#M327272</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-08-12T20:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Add value on Y Axis and configure X asis using gplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-value-on-Y-Axis-and-configure-X-asis-using-gplot/m-p/828518#M327273</link>
      <description>Vref option gives a reference line. I want to delete the line and instead&lt;BR /&gt;of a line add a value on Y Axis Y=0.05.&lt;BR /&gt;&lt;BR /&gt;How do I use haxis option?&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Aug 2022 20:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-value-on-Y-Axis-and-configure-X-asis-using-gplot/m-p/828518#M327273</guid>
      <dc:creator>roshni04</dc:creator>
      <dc:date>2022-08-12T20:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Add value on Y Axis and configure X asis using gplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-value-on-Y-Axis-and-configure-X-asis-using-gplot/m-p/828537#M327276</link>
      <description>&lt;P&gt;Answer to both: You can use HAXIS or VAXIS as appropriate. It specifically says in the documentation&lt;/P&gt;
&lt;P&gt;"For numeric variables, &lt;EM class="xisDoc-userSuppliedValue"&gt;value-list&lt;/EM&gt; is either an explicit list of values..."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;yaxis order=(0.05 0.25 0.5 0.75 1);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 22:57:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-value-on-Y-Axis-and-configure-X-asis-using-gplot/m-p/828537#M327276</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-08-12T22:57:14Z</dc:date>
    </item>
  </channel>
</rss>

