<?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 fix x axis value label range using proc sgplot? in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-fix-x-axis-value-label-range-using-proc-sgplot/m-p/950971#M18489</link>
    <description>&lt;P&gt;I want to create a graph with a fixed x-axis range using the SGPLOT command. Specifically, I want the x-axis to range from -100 to 100 by 10. However, when I ran the code, the x-axis displayed a range of -25 to -75 by 25 instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=test5aT nowall noborder nocycleattrs dattrmap=attrmap noautolegend ;&lt;BR /&gt;title 'A';&lt;/P&gt;&lt;P&gt;format text $txt.;&lt;BR /&gt;styleattrs axisextent=data ;&lt;BR /&gt;highlow y=obsid low=low high=high/lineattrs=(thickness=.05);&lt;BR /&gt;scatter y=obsid x=percent / markerattrs=(symbol=circle size=10);&lt;BR /&gt;refline 1 / axis=x noclip;&lt;BR /&gt;text x=xl y=obsid text=text / position=bottom contributeoffsets=none strip;&lt;BR /&gt;yaxistable exposure / location=inside position=left textgroup=id labelattrs=(size=12 Weight=Bold);&lt;BR /&gt;yaxistable nobsused / location=inside position=left labelattrs=(size=12 Weight=Bold) valueattrs=(size=9);&lt;BR /&gt;yaxistable iqr percent _95/ location=inside position=left;&lt;BR /&gt;&lt;BR /&gt;yaxis reverse display=none;&lt;BR /&gt;xaxis labelattrs=(size=12) valueattrs=(size=9);&lt;BR /&gt;x2axis min=-100 max=100 values=(-100 to 100 by 10)display=all labelattrs=(size=9) offsetmin=0 offsetmax=0;&lt;BR /&gt;xaxis label='Rate (%)' LABELPOS=DATACENTER labelattrs=(color=Black size=9 WEIGHT= BOLD);&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 22:27:40 GMT</pubDate>
    <dc:creator>Rayhan</dc:creator>
    <dc:date>2024-11-15T22:27:40Z</dc:date>
    <item>
      <title>How to fix x axis value label range using proc sgplot?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-fix-x-axis-value-label-range-using-proc-sgplot/m-p/950971#M18489</link>
      <description>&lt;P&gt;I want to create a graph with a fixed x-axis range using the SGPLOT command. Specifically, I want the x-axis to range from -100 to 100 by 10. However, when I ran the code, the x-axis displayed a range of -25 to -75 by 25 instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=test5aT nowall noborder nocycleattrs dattrmap=attrmap noautolegend ;&lt;BR /&gt;title 'A';&lt;/P&gt;&lt;P&gt;format text $txt.;&lt;BR /&gt;styleattrs axisextent=data ;&lt;BR /&gt;highlow y=obsid low=low high=high/lineattrs=(thickness=.05);&lt;BR /&gt;scatter y=obsid x=percent / markerattrs=(symbol=circle size=10);&lt;BR /&gt;refline 1 / axis=x noclip;&lt;BR /&gt;text x=xl y=obsid text=text / position=bottom contributeoffsets=none strip;&lt;BR /&gt;yaxistable exposure / location=inside position=left textgroup=id labelattrs=(size=12 Weight=Bold);&lt;BR /&gt;yaxistable nobsused / location=inside position=left labelattrs=(size=12 Weight=Bold) valueattrs=(size=9);&lt;BR /&gt;yaxistable iqr percent _95/ location=inside position=left;&lt;BR /&gt;&lt;BR /&gt;yaxis reverse display=none;&lt;BR /&gt;xaxis labelattrs=(size=12) valueattrs=(size=9);&lt;BR /&gt;x2axis min=-100 max=100 values=(-100 to 100 by 10)display=all labelattrs=(size=9) offsetmin=0 offsetmax=0;&lt;BR /&gt;xaxis label='Rate (%)' LABELPOS=DATACENTER labelattrs=(color=Black size=9 WEIGHT= BOLD);&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:27:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-fix-x-axis-value-label-range-using-proc-sgplot/m-p/950971#M18489</guid>
      <dc:creator>Rayhan</dc:creator>
      <dc:date>2024-11-15T22:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix x axis value label range using proc sgplot?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-fix-x-axis-value-label-range-using-proc-sgplot/m-p/950974#M18490</link>
      <description>&lt;P&gt;Your values list is for an X2AXIS, or the top of the graph. I don't see any plot actually using the X2AXIS though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Strong hint: ONE Xaxis and ONE Yaxis statement with all the options.&lt;/P&gt;
&lt;P&gt;We see cases where multiple statements only have the last Xaxis or Yaxis statement applied.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:04:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-fix-x-axis-value-label-range-using-proc-sgplot/m-p/950974#M18490</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-11-15T23:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix x axis value label range using proc sgplot?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-fix-x-axis-value-label-range-using-proc-sgplot/m-p/950975#M18491</link>
      <description>&lt;P&gt;I also use following ways but didn't get fixed x axis&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;xaxis values=(-100 to 100 by 10) labelattrs=(size=12) valueattrs=(size=9);&lt;BR /&gt;xaxis label='Excess rate (%)' LABELPOS=DATACENTER labelattrs=(color=Black size=9 WEIGHT= BOLD);&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:13:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-fix-x-axis-value-label-range-using-proc-sgplot/m-p/950975#M18491</guid>
      <dc:creator>Rayhan</dc:creator>
      <dc:date>2024-11-15T23:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix x axis value label range using proc sgplot?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-fix-x-axis-value-label-range-using-proc-sgplot/m-p/950980#M18492</link>
      <description>You have two xaxis statements - get rid of the semicolon on the first line and get rid of the 'xaxis' on the 2nd line and you should be good.</description>
      <pubDate>Sat, 16 Nov 2024 00:08:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-fix-x-axis-value-label-range-using-proc-sgplot/m-p/950980#M18492</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2024-11-16T00:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix x axis value label range using proc sgplot?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-fix-x-axis-value-label-range-using-proc-sgplot/m-p/950999#M18493</link>
      <description>Thanks a lot, it works.</description>
      <pubDate>Sat, 16 Nov 2024 14:52:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-fix-x-axis-value-label-range-using-proc-sgplot/m-p/950999#M18493</guid>
      <dc:creator>Rayhan</dc:creator>
      <dc:date>2024-11-16T14:52:20Z</dc:date>
    </item>
  </channel>
</rss>

