<?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 How to change values on Y axis in proc sgplot, Odds ratio graph in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-change-values-on-Y-axis-in-proc-sgplot-Odds-ratio-graph/m-p/398369#M13641</link>
    <description>&lt;P&gt;Hi, everyone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am making ODDs ratio graph by using SGPLOT. I am a user of SAS university.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc sgplot data=Figure4OR noautolegend;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; scatter y=Effect x=OddsratioEST / xerrorlower=LowerCL xerrorupper=UpperCL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; markerattrs=(symbol=circlefilled);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; refline 0 / axis=x;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; xaxis grid;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; yaxis grid display=(nolabel) discreteorder=data reverse;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got a graph as the attached file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I would like to change the values in Y axis. (ex. RF_HF_Known 1 vs 0 -&amp;gt; Heart Failure)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could not find the method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Sun, 24 Sep 2017 09:29:32 GMT</pubDate>
    <dc:creator>Plessein</dc:creator>
    <dc:date>2017-09-24T09:29:32Z</dc:date>
    <item>
      <title>How to change values on Y axis in proc sgplot, Odds ratio graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-change-values-on-Y-axis-in-proc-sgplot-Odds-ratio-graph/m-p/398369#M13641</link>
      <description>&lt;P&gt;Hi, everyone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am making ODDs ratio graph by using SGPLOT. I am a user of SAS university.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc sgplot data=Figure4OR noautolegend;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; scatter y=Effect x=OddsratioEST / xerrorlower=LowerCL xerrorupper=UpperCL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; markerattrs=(symbol=circlefilled);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; refline 0 / axis=x;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; xaxis grid;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; yaxis grid display=(nolabel) discreteorder=data reverse;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got a graph as the attached file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I would like to change the values in Y axis. (ex. RF_HF_Known 1 vs 0 -&amp;gt; Heart Failure)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could not find the method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2017 09:29:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-change-values-on-Y-axis-in-proc-sgplot-Odds-ratio-graph/m-p/398369#M13641</guid>
      <dc:creator>Plessein</dc:creator>
      <dc:date>2017-09-24T09:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to change values on Y axis in proc sgplot, Odds ratio graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-change-values-on-Y-axis-in-proc-sgplot-Odds-ratio-graph/m-p/398390#M13642</link>
      <description>&lt;P&gt;Create a format and apply the format to the variable, ideally in the PROC LOGISTIC or whatever procedure you're using to generate the ODDSRATIO.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi30/001-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/001-30.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value sample_format
1 = 'Heart Attack'
2 = 'No Heart Attack';
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 24 Sep 2017 15:52:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-change-values-on-Y-axis-in-proc-sgplot-Odds-ratio-graph/m-p/398390#M13642</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-24T15:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to change values on Y axis in proc sgplot, Odds ratio graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-change-values-on-Y-axis-in-proc-sgplot-Odds-ratio-graph/m-p/399707#M13663</link>
      <description>&lt;P&gt;I appreciate your promp answer &amp;amp; good solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the logistic procedure and ODS output. I could find that there was "Effect" variable and the Text that I would like to change were contents of the variable "Effect".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By changing the contents and using format, I could make what I wanted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 06:30:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-change-values-on-Y-axis-in-proc-sgplot-Odds-ratio-graph/m-p/399707#M13663</guid>
      <dc:creator>Plessein</dc:creator>
      <dc:date>2017-09-29T06:30:11Z</dc:date>
    </item>
  </channel>
</rss>

