<?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 could I show axis label using another variable in sgplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/how-could-I-show-axis-label-using-another-variable-in-sgplot/m-p/349855#M12135</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to modify the axis label of a waterfall plot. As it's a waterfall plot, the original id is resort from 1, but is it possible to show the original id in the axis? It can be done with 'value' option, however what if I create multiple pages at the same time(which means I use a 'by' statement)? Can I use the original id variable(subjid)? Below is my code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=all dattrmap=attrmap;
    by cohort;
   refline -30 20 / axis=y lineattrs=(pattern=shortdash);
   vbar id / response=pchg group=avalc attrid=RESP;
   xaxis label="Subject" fitpolicy=thin;
   yaxis label="Change from baseline (%)" values=(-100 to 180 by 20);
   keylegend / location=inside down=1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8320i9E5D43D629BB77E9/image-size/original?v=1.0&amp;amp;px=-1" alt="Capture.PNG" title="Capture.PNG" border="0" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Apr 2017 19:36:09 GMT</pubDate>
    <dc:creator>hjy50</dc:creator>
    <dc:date>2017-04-13T19:36:09Z</dc:date>
    <item>
      <title>how could I show axis label using another variable in sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-could-I-show-axis-label-using-another-variable-in-sgplot/m-p/349855#M12135</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to modify the axis label of a waterfall plot. As it's a waterfall plot, the original id is resort from 1, but is it possible to show the original id in the axis? It can be done with 'value' option, however what if I create multiple pages at the same time(which means I use a 'by' statement)? Can I use the original id variable(subjid)? Below is my code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=all dattrmap=attrmap;
    by cohort;
   refline -30 20 / axis=y lineattrs=(pattern=shortdash);
   vbar id / response=pchg group=avalc attrid=RESP;
   xaxis label="Subject" fitpolicy=thin;
   yaxis label="Change from baseline (%)" values=(-100 to 180 by 20);
   keylegend / location=inside down=1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8320i9E5D43D629BB77E9/image-size/original?v=1.0&amp;amp;px=-1" alt="Capture.PNG" title="Capture.PNG" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 19:36:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-could-I-show-axis-label-using-another-variable-in-sgplot/m-p/349855#M12135</guid>
      <dc:creator>hjy50</dc:creator>
      <dc:date>2017-04-13T19:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: how could I show axis label using another variable in sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-could-I-show-axis-label-using-another-variable-in-sgplot/m-p/349905#M12137</link>
      <description>&lt;P&gt;You are really asking us to guess what "an original id" may be. Is it a variable in that data? If so which one?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might consider a format and use the TICKVALUEFORMAT to reference that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 23:06:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-could-I-show-axis-label-using-another-variable-in-sgplot/m-p/349905#M12137</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-13T23:06:08Z</dc:date>
    </item>
  </channel>
</rss>

