<?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: SGPLOT x-axis labels using a format in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-x-axis-labels-using-a-format/m-p/701714#M25799</link>
    <description>&lt;P&gt;Try removing the XAXIS statement altogether. Begin from a simpler starting point.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 22:54:50 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2020-11-25T22:54:50Z</dc:date>
    <item>
      <title>SGPLOT x-axis labels using a format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-x-axis-labels-using-a-format/m-p/701426#M25766</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having trouble getting the labels to appear on the X-axis. I already have a format in SAS for Var2. When I run the code below, there are no labels on the X-axis. I would like the x-axis to display the values of Var2 and tick marks at A, B, C, D, and E. I have tried running this with and without the FORMAT and VALUESFORMAT statements and it is the same outcome. Any tips would be appreciated! Thanks!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC SGPLOT DATA = newdata NOAUTOLEGEND;&lt;BR /&gt;FORMAT Var2 $Var2.;&lt;BR /&gt;VBOX Var1 /GROUP = Var2 ;&lt;/P&gt;&lt;P&gt;XAXIS VALUES = ("A" "B" "C" "D" "E")&lt;BR /&gt;VALUESFORMAT= $Var2.&lt;/P&gt;&lt;P&gt;YAXIS VALUES = ( 0 TO 100 BY 10 );&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 03:13:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-x-axis-labels-using-a-format/m-p/701426#M25766</guid>
      <dc:creator>tmlee02</dc:creator>
      <dc:date>2020-11-25T03:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT x-axis labels using a format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-x-axis-labels-using-a-format/m-p/701432#M25767</link>
      <description>&lt;P&gt;Try using CATEGORY instead of GROUP:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SGPLOT DATA = newdata NOAUTOLEGEND;
FORMAT Var2 $Var2.;
VBOX Var1 / CATEGORY = Var2 ;
XAXIS VALUES = ("A" "B" "C" "D" "E")
VALUESFORMAT= $Var2.;
YAXIS VALUES = ( 0 TO 100 BY 10 );
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Nov 2020 04:13:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-x-axis-labels-using-a-format/m-p/701432#M25767</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-11-25T04:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT x-axis labels using a format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-x-axis-labels-using-a-format/m-p/701682#M25791</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help. I put in CATEGORY and this did add the label to the x-axis. However, it only displays one of my categorical variables ("A") instead of displaying A, B, C, D, and E. Any thoughts on why that might be?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 20:01:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-x-axis-labels-using-a-format/m-p/701682#M25791</guid>
      <dc:creator>tmlee02</dc:creator>
      <dc:date>2020-11-25T20:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT x-axis labels using a format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-x-axis-labels-using-a-format/m-p/701700#M25797</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/344749"&gt;@tmlee02&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help. I put in CATEGORY and this did add the label to the x-axis. However, it only displays one of my categorical variables ("A") instead of displaying A, B, C, D, and E. Any thoughts on why that might be?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Definition of your custom format?&lt;/P&gt;
&lt;P&gt;Data values?&lt;/P&gt;
&lt;P&gt;Interaction between the two.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 21:36:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-x-axis-labels-using-a-format/m-p/701700#M25797</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-25T21:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT x-axis labels using a format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-x-axis-labels-using-a-format/m-p/701714#M25799</link>
      <description>&lt;P&gt;Try removing the XAXIS statement altogether. Begin from a simpler starting point.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 22:54:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-x-axis-labels-using-a-format/m-p/701714#M25799</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-11-25T22:54:50Z</dc:date>
    </item>
  </channel>
</rss>

