<?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: DATALATTICE layout , showing Y axis in base 10 log scale in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DATALATTICE-layout-showing-Y-axis-in-base-10-log-scale/m-p/934075#M367349</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/193784"&gt;@hawari&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Ballardw ,yes I tried using this :&amp;nbsp;&lt;SPAN&gt;rowaxisopts=(type=log logots=(base=10)) ... but it didn't work .&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Just to clarify, you actually used&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;rowaxisopts=(type=log logo&lt;FONT color="#800080"&gt;&lt;STRONG&gt;p&lt;/STRONG&gt;&lt;/FONT&gt;ts=(base=10))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Did you see notes like this in the LOG:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;NOTE: The log axis cannot support zero or negative values for the axis from plot data or due to
      default or assigned BASELINEINTERCEPT value. The axis type will be changed to LINEAR.
NOTE: The log axis cannot support zero or negative values for the axis from plot data or due to
      default or assigned BASELINEINTERCEPT value. The axis type will be changed to LINEAR.

&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;BAR Charts default to starting at 0. LOG Axis cannot use 0.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Try changing the BARCHART to &lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;   barchart x=age y=height_mean / group=sex barlabel=true groupdisplay=cluster
                                              name='bar' outlineattrs=(color=black) baselineintercept=1; &lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;The default for groupdisplay is STACK, which disables the BASELINEINTERCEPT which allows not showing the 0 value. So change the Groupdisplay to CLUSTER even though your data, at least with this example, won't look any different and add the BASELINEINTERCEPT. You could use a smaller value but NOT ZERO!!!!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2024 14:53:31 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-06-28T14:53:31Z</dc:date>
    <item>
      <title>DATALATTICE layout , showing Y axis in base 10 log scale</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATALATTICE-layout-showing-Y-axis-in-base-10-log-scale/m-p/934027#M367332</link>
      <description>&lt;P&gt;Hi , Please, doe you have an idea about how to show Y axis in base 10 log scale, in the code below ?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;proc sort data=sashelp.class out=class; 
   by sex;
run;
 
proc means data=class nway mean clm noprint; 
   by sex; 
   class age; 
   var height; 
   output out=new mean= lclm= uclm= / autoname; 
run; 

proc template; 
   define statgraph barchart; 
   begingraph; 
      entrytitle 'Bar Chart with Error Bars'; 
      layout gridded / border=false; 
         layout datalattice columnvar=sex / headerlabeldisplay=value cellwidthmin=50 
                            columnheaders=bottom border=false columndatarange=union 
                            columnaxisopts=(display=(line tickvalues)) 
                            rowaxisopts=(offsetmin=0 label='Mean Height' griddisplay=on); 
            layout prototype / walldisplay=(fill); 
               barchart x=age y=height_mean / group=sex barlabel=true 
                                              name='bar' outlineattrs=(color=black); 
               scatterplot x=age y=height_mean / group=sex yerrorlower=height_lclm 
                                                 yerrorupper=height_uclm 
                                                 markerattrs=(size=0) name='scatter' 
                                                 errorbarattrs=(thickness=2) datatransparency=0.6; 
	    endlayout; 
         endlayout; 
      endlayout; 
   endgraph; 
   end; 
run; 

proc sgrender data=new template=barchart; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I tried this :&amp;nbsp;&amp;nbsp;&lt;CODE&gt;rowaxisopts=(type=log logots=(base=10)) but it didn't work .&amp;nbsp;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Thanks in advance for your help !&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 10:18:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATALATTICE-layout-showing-Y-axis-in-base-10-log-scale/m-p/934027#M367332</guid>
      <dc:creator>hawari</dc:creator>
      <dc:date>2024-06-28T10:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: DATALATTICE layout , showing Y axis in base 10 log scale</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATALATTICE-layout-showing-Y-axis-in-base-10-log-scale/m-p/934067#M367344</link>
      <description>&lt;P&gt;Start by adding a TYPE=LOG so SAS knows that you want a LOG based axis.&lt;/P&gt;
&lt;P&gt;Then use LOGOPTS=(Base=10) to indicate the option(s) to apply.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 14:13:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATALATTICE-layout-showing-Y-axis-in-base-10-log-scale/m-p/934067#M367344</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-06-28T14:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: DATALATTICE layout , showing Y axis in base 10 log scale</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATALATTICE-layout-showing-Y-axis-in-base-10-log-scale/m-p/934069#M367346</link>
      <description>&lt;P&gt;Hi Ballardw ,yes I tried using this :&amp;nbsp;&lt;SPAN&gt;rowaxisopts=(type=log logots=(base=10)) ... but it didn't work .&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 14:17:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATALATTICE-layout-showing-Y-axis-in-base-10-log-scale/m-p/934069#M367346</guid>
      <dc:creator>hawari</dc:creator>
      <dc:date>2024-06-28T14:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: DATALATTICE layout , showing Y axis in base 10 log scale</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATALATTICE-layout-showing-Y-axis-in-base-10-log-scale/m-p/934075#M367349</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/193784"&gt;@hawari&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Ballardw ,yes I tried using this :&amp;nbsp;&lt;SPAN&gt;rowaxisopts=(type=log logots=(base=10)) ... but it didn't work .&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Just to clarify, you actually used&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;rowaxisopts=(type=log logo&lt;FONT color="#800080"&gt;&lt;STRONG&gt;p&lt;/STRONG&gt;&lt;/FONT&gt;ts=(base=10))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Did you see notes like this in the LOG:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;NOTE: The log axis cannot support zero or negative values for the axis from plot data or due to
      default or assigned BASELINEINTERCEPT value. The axis type will be changed to LINEAR.
NOTE: The log axis cannot support zero or negative values for the axis from plot data or due to
      default or assigned BASELINEINTERCEPT value. The axis type will be changed to LINEAR.

&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;BAR Charts default to starting at 0. LOG Axis cannot use 0.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Try changing the BARCHART to &lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;   barchart x=age y=height_mean / group=sex barlabel=true groupdisplay=cluster
                                              name='bar' outlineattrs=(color=black) baselineintercept=1; &lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;The default for groupdisplay is STACK, which disables the BASELINEINTERCEPT which allows not showing the 0 value. So change the Groupdisplay to CLUSTER even though your data, at least with this example, won't look any different and add the BASELINEINTERCEPT. You could use a smaller value but NOT ZERO!!!!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 14:53:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATALATTICE-layout-showing-Y-axis-in-base-10-log-scale/m-p/934075#M367349</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-06-28T14:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: DATALATTICE layout , showing Y axis in base 10 log scale</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATALATTICE-layout-showing-Y-axis-in-base-10-log-scale/m-p/934119#M367353</link>
      <description>&lt;P&gt;thx&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;! it works now&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 17:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATALATTICE-layout-showing-Y-axis-in-base-10-log-scale/m-p/934119#M367353</guid>
      <dc:creator>hawari</dc:creator>
      <dc:date>2024-06-28T17:11:46Z</dc:date>
    </item>
  </channel>
</rss>

