<?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 Proc Gplot in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Gplot/m-p/64612#M7530</link>
    <description>Hello -&lt;BR /&gt;
&lt;BR /&gt;
I was wondering if there was a way to control the vertical axis when you are using a by statement in Proc Gplot.  I know you can use Axis1 Order = (value1 to value2 by value3) but if the values are significantly different for each by group then this won't work.  Any ideas?</description>
    <pubDate>Fri, 05 Dec 2008 00:52:20 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-12-05T00:52:20Z</dc:date>
    <item>
      <title>Proc Gplot</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Gplot/m-p/64612#M7530</link>
      <description>Hello -&lt;BR /&gt;
&lt;BR /&gt;
I was wondering if there was a way to control the vertical axis when you are using a by statement in Proc Gplot.  I know you can use Axis1 Order = (value1 to value2 by value3) but if the values are significantly different for each by group then this won't work.  Any ideas?</description>
      <pubDate>Fri, 05 Dec 2008 00:52:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Gplot/m-p/64612#M7530</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-12-05T00:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Gplot</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Gplot/m-p/64613#M7531</link>
      <description>Your question isn't clear to me.  The axis statement will work if you have included the full range of data for all by levels.  I'm guessing though that you might want a different axis statement for each by level.  I've done that with some macro statements around the plot procedure, e.g. (a snippet from somewhere to show you the principle)&lt;BR /&gt;
&lt;BR /&gt;
%Macro ByAxis;&lt;BR /&gt;
&lt;BR /&gt;
%do prd= 1 %to 2 %by 1;                                                                                                                                                                 &lt;BR /&gt;
                                                                                                                                                                                        &lt;BR /&gt;
  %if &amp;amp;prd=1  %then %do;%let Prod=' HR';%let max=3; %let incr=2;%end;                                                                                                                   &lt;BR /&gt;
    %else %if &amp;amp;prd=2  %then %do;%let Prod='CR'; %let max=6; %let incr=2;%end;                                                                                                           &lt;BR /&gt;
                                                                                                                                                                                        &lt;BR /&gt;
axis1 order=(0 to &amp;amp;max by &amp;amp;incr)                                                                                                                                                        &lt;BR /&gt;
                                                                                                                                                                                        &lt;BR /&gt;
proc gchart data=prodannual (where=(Product=&amp;amp;Prod));                                                                                                                                    &lt;BR /&gt;
  by product;                                                                                                                                                                           &lt;BR /&gt;
  vbar period/sumvar=pct                                                                                                                                                                &lt;BR /&gt;
            discrete                                                                                                                                                                    &lt;BR /&gt;
            width=15                                                                                                                                                                    &lt;BR /&gt;
            caxis=cxbfbfbf                                                                                                                                                              &lt;BR /&gt;
            raxis=axis1                                                                                                                                                                 &lt;BR /&gt;
         ;                                                                                                                                                                              &lt;BR /&gt;
run;                                                                                                                                                                                    &lt;BR /&gt;
                                                                                                                                                                                        &lt;BR /&gt;
%end;                                                                                                                                                                                   &lt;BR /&gt;
                                                                                                                                                                                        &lt;BR /&gt;
%Mend ByAxis;                                                                                                                                                                           &lt;BR /&gt;
                                                                                                                                                                                        &lt;BR /&gt;
%ByAxis;   &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
But I have to ask - from a best practice data visualization perspective ...&lt;BR /&gt;
&lt;BR /&gt;
If there is any intent to compare the by groups, they should all use the same scales on the graphs so that the relative position of the points/lines is immediately evident without having to interpet scale differences.</description>
      <pubDate>Fri, 05 Dec 2008 15:17:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Gplot/m-p/64613#M7531</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2008-12-05T15:17:19Z</dc:date>
    </item>
  </channel>
</rss>

