<?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: Proc template - log scale to show negative samples in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-template-log-scale-to-show-negative-samples/m-p/877286#M346577</link>
    <description>&lt;P&gt;Since the LOG function is basically not defined for negative numbers I haven't a clue what your advisor or commentators are actually suggesting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the documentation associated with Layout Overlay and Log Axes:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-eDocBody"&gt;
&lt;DIV id="p1pqfzgbuzbpkzn1mrbzhgggvhkz" class="xis-topic"&gt;
&lt;DIV id="n1lwrfhntenff3n1u2nr7ykdhv7h" class="xis-subTopic"&gt;
&lt;DIV id="p0iz1hny7dnhdsn10o9y0q7ifldj" class="xis-subSubTopic"&gt;
&lt;DIV id="n121qiiwruba4mn1smu6zak892ig" class="xis-topicContent"&gt;
&lt;DIV id="n0gim99fd97trbn1x5dtk7ipz7cx" class="xis-paragraph"&gt;The numeric data that is used for a log axis must be positive. If &lt;STRONG&gt;zero or negative&lt;/STRONG&gt; values are encountered, a linear axis is substituted and the following note is written to the log:&lt;/DIV&gt;
&lt;DIV id="p1fj4622esmjwmn10bh6y5edtj9l" class="xis-logBlock"&gt;
&lt;PRE&gt;NOTE: Log axis cannot support zero or negative values in the data range. The axis type will
      be changed to LINEAR.&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you must display negative X axis values then you aren't going to do it with Type=LOG axis. I would go back to the source of the feedback and see what they say about negative values and a LOG axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 14:57:15 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-05-24T14:57:15Z</dc:date>
    <item>
      <title>Proc template - log scale to show negative samples</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-template-log-scale-to-show-negative-samples/m-p/877203#M346534</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;I have produced a scatter plot using proc template and proc sgrender, with x-axis in log scale using:&lt;/P&gt;&lt;DIV&gt;layout overlay/ xaxisopts=( type=LOG&amp;nbsp;&lt;SPAN&gt; LOGOPTS=(base=10 minorgrid=false minorticks=true&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt; viewmin=1 viewmax=10)&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;The feedback I got was that I must show also the observations with negative samples. So the x-axis should look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mape_0-1684909950799.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/84234i61034D004299C7B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mape_0-1684909950799.png" alt="mape_0-1684909950799.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this??&lt;/P&gt;&lt;P&gt;Many thanks for your support&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 06:37:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-template-log-scale-to-show-negative-samples/m-p/877203#M346534</guid>
      <dc:creator>mape</dc:creator>
      <dc:date>2023-05-24T06:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc template - log scale to show negative samples</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-template-log-scale-to-show-negative-samples/m-p/877286#M346577</link>
      <description>&lt;P&gt;Since the LOG function is basically not defined for negative numbers I haven't a clue what your advisor or commentators are actually suggesting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the documentation associated with Layout Overlay and Log Axes:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-eDocBody"&gt;
&lt;DIV id="p1pqfzgbuzbpkzn1mrbzhgggvhkz" class="xis-topic"&gt;
&lt;DIV id="n1lwrfhntenff3n1u2nr7ykdhv7h" class="xis-subTopic"&gt;
&lt;DIV id="p0iz1hny7dnhdsn10o9y0q7ifldj" class="xis-subSubTopic"&gt;
&lt;DIV id="n121qiiwruba4mn1smu6zak892ig" class="xis-topicContent"&gt;
&lt;DIV id="n0gim99fd97trbn1x5dtk7ipz7cx" class="xis-paragraph"&gt;The numeric data that is used for a log axis must be positive. If &lt;STRONG&gt;zero or negative&lt;/STRONG&gt; values are encountered, a linear axis is substituted and the following note is written to the log:&lt;/DIV&gt;
&lt;DIV id="p1fj4622esmjwmn10bh6y5edtj9l" class="xis-logBlock"&gt;
&lt;PRE&gt;NOTE: Log axis cannot support zero or negative values in the data range. The axis type will
      be changed to LINEAR.&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you must display negative X axis values then you aren't going to do it with Type=LOG axis. I would go back to the source of the feedback and see what they say about negative values and a LOG axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 14:57:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-template-log-scale-to-show-negative-samples/m-p/877286#M346577</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-05-24T14:57:15Z</dc:date>
    </item>
  </channel>
</rss>

