<?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: customizing x-axis using proc sgplot in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/customizing-x-axis-using-proc-sgplot/m-p/806801#M317950</link>
    <description>&lt;P&gt;Thank you so much! I am most grateful.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2022 16:04:47 GMT</pubDate>
    <dc:creator>UcheOkoro</dc:creator>
    <dc:date>2022-04-08T16:04:47Z</dc:date>
    <item>
      <title>customizing x-axis using proc sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/customizing-x-axis-using-proc-sgplot/m-p/806798#M317947</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am plotting trends in&amp;nbsp; odds ratio using proc sglot but the x-axis will not display all the years. I used "values" and "displayvalues" but they do not seem to work.&lt;/P&gt;
&lt;P&gt;Please, kindly assist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="UcheOkoro_0-1649432640115.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70244i07CDF2B668416EBB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="UcheOkoro_0-1649432640115.png" alt="UcheOkoro_0-1649432640115.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=Females ;
format Health_cost_health_insur typeFmt.;
   scatter y=Odds_ratio x=Year  /group=Health_cost_health_insur yerrorlower=LL yerrorupper=UL markerattrs=(symbol=diamondfilled);
   refline 0 / axis=y;
   	title 'Cherry-Picking Violation by Provider Designation';
      xaxis grid
  values=(2013 2014 2015 2016 2017 2018 2019)
Valuesdisplay=("2013" "2014" "2015" "2016" "2017" "2018" "2019" );;
   yaxis grid  discreteorder=data ;
  xaxis display=ALL  INTERVAL= Year;
   keylegend  / title="Health Coverage Status"  location=outside; 
    		title 'Trend in Health Coverage and Health Cost in Females Compared to Males';
 xaxis label="Year";
 yaxis label="Adjusted Odds Ratio";
        run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Apr 2022 15:45:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/customizing-x-axis-using-proc-sgplot/m-p/806798#M317947</guid>
      <dc:creator>UcheOkoro</dc:creator>
      <dc:date>2022-04-08T15:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: customizing x-axis using proc sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/customizing-x-axis-using-proc-sgplot/m-p/806799#M317948</link>
      <description>&lt;P&gt;You have &lt;STRONG&gt;two XAXIS statements.&lt;/STRONG&gt; When there are multiple axis statements affecting the same axis only the LAST one seems to be applied.&lt;/P&gt;
&lt;P&gt;Combine the two into a single XAXIS and I think your problem will be fixed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You&amp;nbsp; really only the the VALUESDISPLAY to show something quite different than the formatted value. It might make sense if you were doing something like:&lt;/P&gt;
&lt;PRE&gt;   xaxis grid
  values=(2013 2014 2015 2016 2017 2018 2019)
Valuesdisplay=("Baseline" "2014" "2015" "Intervention" "2017" "2018" "Evaluation" );&lt;/PRE&gt;
&lt;P&gt;with something simple like year I would normally not bother with Valuesdisplay&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 15:51:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/customizing-x-axis-using-proc-sgplot/m-p/806799#M317948</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-08T15:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: customizing x-axis using proc sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/customizing-x-axis-using-proc-sgplot/m-p/806801#M317950</link>
      <description>&lt;P&gt;Thank you so much! I am most grateful.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 16:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/customizing-x-axis-using-proc-sgplot/m-p/806801#M317950</guid>
      <dc:creator>UcheOkoro</dc:creator>
      <dc:date>2022-04-08T16:04:47Z</dc:date>
    </item>
  </channel>
</rss>

