<?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 plot using SGPLOT with Series statement for Semilog scale in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/plot-using-SGPLOT-with-Series-statement-for-Semilog-scale/m-p/436588#M23046</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I got the below message when used SGPLOT with Series statement to create PK graph.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;NOTE: The log axis cannot support zero or negative values for the axis from plot data or due to default or&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;assigned BASELINEINTERCEPT value. The axis type will be changed to LINEAR.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;it is not creating the y-axis in log scale.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code I used.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sgplot&lt;/STRONG&gt; data=pkmean dattrmap=test noborder ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&amp;nbsp;&amp;nbsp; series x = pktime1 y =meancmax/ group=column attrid=X markers;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&amp;nbsp;&amp;nbsp; xaxis label = 'Time (hr)' values = (&lt;STRONG&gt;0&lt;/STRONG&gt; to &lt;STRONG&gt;60&lt;/STRONG&gt; by &lt;STRONG&gt;10&lt;/STRONG&gt;) minor MINORCOUNT=&lt;STRONG&gt;1&lt;/STRONG&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&amp;nbsp;&amp;nbsp; yaxis label = 'Concentration (ng/mL)' values = ( &lt;STRONG&gt;1&lt;/STRONG&gt; &lt;STRONG&gt;10&lt;/STRONG&gt; &lt;STRONG&gt;100&lt;/STRONG&gt; &lt;STRONG&gt;1000&lt;/STRONG&gt; &lt;STRONG&gt;10000&lt;/STRONG&gt;)&amp;nbsp; type=log logbase=&lt;STRONG&gt;10&lt;/STRONG&gt; logstyle=logexpand ;*&amp;nbsp;&amp;nbsp; minor MINORCOUNT=8 ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&amp;nbsp;&amp;nbsp; keylegend / title="Concentration Vs. Time" location=inside position=TOPRIGHT across=&lt;STRONG&gt;1&lt;/STRONG&gt; down=&lt;STRONG&gt;2&lt;/STRONG&gt; noborder;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you are aware of resolving this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2018 07:34:33 GMT</pubDate>
    <dc:creator>shampras</dc:creator>
    <dc:date>2018-02-13T07:34:33Z</dc:date>
    <item>
      <title>plot using SGPLOT with Series statement for Semilog scale</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/plot-using-SGPLOT-with-Series-statement-for-Semilog-scale/m-p/436588#M23046</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I got the below message when used SGPLOT with Series statement to create PK graph.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;NOTE: The log axis cannot support zero or negative values for the axis from plot data or due to default or&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;assigned BASELINEINTERCEPT value. The axis type will be changed to LINEAR.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;it is not creating the y-axis in log scale.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code I used.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sgplot&lt;/STRONG&gt; data=pkmean dattrmap=test noborder ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&amp;nbsp;&amp;nbsp; series x = pktime1 y =meancmax/ group=column attrid=X markers;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&amp;nbsp;&amp;nbsp; xaxis label = 'Time (hr)' values = (&lt;STRONG&gt;0&lt;/STRONG&gt; to &lt;STRONG&gt;60&lt;/STRONG&gt; by &lt;STRONG&gt;10&lt;/STRONG&gt;) minor MINORCOUNT=&lt;STRONG&gt;1&lt;/STRONG&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&amp;nbsp;&amp;nbsp; yaxis label = 'Concentration (ng/mL)' values = ( &lt;STRONG&gt;1&lt;/STRONG&gt; &lt;STRONG&gt;10&lt;/STRONG&gt; &lt;STRONG&gt;100&lt;/STRONG&gt; &lt;STRONG&gt;1000&lt;/STRONG&gt; &lt;STRONG&gt;10000&lt;/STRONG&gt;)&amp;nbsp; type=log logbase=&lt;STRONG&gt;10&lt;/STRONG&gt; logstyle=logexpand ;*&amp;nbsp;&amp;nbsp; minor MINORCOUNT=8 ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&amp;nbsp;&amp;nbsp; keylegend / title="Concentration Vs. Time" location=inside position=TOPRIGHT across=&lt;STRONG&gt;1&lt;/STRONG&gt; down=&lt;STRONG&gt;2&lt;/STRONG&gt; noborder;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you are aware of resolving this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 07:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/plot-using-SGPLOT-with-Series-statement-for-Semilog-scale/m-p/436588#M23046</guid>
      <dc:creator>shampras</dc:creator>
      <dc:date>2018-02-13T07:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: plot using SGPLOT with Series statement for Semilog scale</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/plot-using-SGPLOT-with-Series-statement-for-Semilog-scale/m-p/436591#M23048</link>
      <description>&lt;P&gt;Haven't seen your data, so I can't tell you if this is the only problem..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when you use &lt;SPAN&gt;values = (&lt;/SPAN&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;to&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;60&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;by&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;10&lt;/STRONG&gt;&lt;SPAN&gt;) in the XAXIS Statement and also use&amp;nbsp;type=log in the YAXIS Statement you are effectively asking SAS to take log10(0), which is not defined.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 07:42:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/plot-using-SGPLOT-with-Series-statement-for-Semilog-scale/m-p/436591#M23048</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-02-13T07:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: plot using SGPLOT with Series statement for Semilog scale</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/plot-using-SGPLOT-with-Series-statement-for-Semilog-scale/m-p/436684#M23050</link>
      <description>&lt;P&gt;This is a data issue. One of your observations have&amp;nbsp;&lt;SPAN&gt;meancmax=0.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can use&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; WHERE&amp;nbsp;meancmax&amp;nbsp;&amp;gt; 0;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;to plot only the valid values, or change the scaling on your&amp;nbsp;Y axis.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To illustrate, run the following&amp;nbsp;program. The NOTE appears. However, change the first DO loop to "do group=1 to 3" and the NOTE will no longer appear.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data A;&lt;BR /&gt;do group = 0 to 3; /* change to 1 to 3 to make NOTE go away */&lt;BR /&gt; do x=1 to 60;&lt;BR /&gt; y = group*x**2;&lt;BR /&gt; output;&lt;BR /&gt; end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc sgplot data=A noborder;&lt;BR /&gt; series x=x y=y / group=group markers;&lt;BR /&gt; xaxis label = 'Time (hr)' values = (0 to 60 by 10) minor MINORCOUNT=1;&lt;BR /&gt; yaxis label = 'Concentration (ng/mL)' values = ( 1 10 100 1000 10000) &lt;BR /&gt; type=log logbase=10 logstyle=logexpand ;* minor MINORCOUNT=8 ;&lt;BR /&gt; keylegend / title="Concentration Vs. Time" location=inside position=TOPRIGHT across=1 down=2 noborder;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 13:15:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/plot-using-SGPLOT-with-Series-statement-for-Semilog-scale/m-p/436684#M23050</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-02-13T13:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: plot using SGPLOT with Series statement for Semilog scale</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/plot-using-SGPLOT-with-Series-statement-for-Semilog-scale/m-p/436945#M23061</link>
      <description>Hi Rick,&lt;BR /&gt;It worked. I appreciate your timely help.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Syam</description>
      <pubDate>Wed, 14 Feb 2018 00:58:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/plot-using-SGPLOT-with-Series-statement-for-Semilog-scale/m-p/436945#M23061</guid>
      <dc:creator>shampras</dc:creator>
      <dc:date>2018-02-14T00:58:35Z</dc:date>
    </item>
  </channel>
</rss>

