<?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: Reference line for log scale axis in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Reference-line-for-log-scale-axis/m-p/766113#M21938</link>
    <description>&lt;P&gt;Is there any particular reason you're using a custom template? If not, I would recommend using the standard Proc SGplot. Here's an example (using random data, since I don't have your data):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data foo;&lt;BR /&gt;do loop = 1 to 200;&lt;BR /&gt;&amp;nbsp;x=ranuni(123)*3;&lt;BR /&gt;&amp;nbsp;y=ranuni(123)*3;&lt;BR /&gt;&amp;nbsp;output;&lt;BR /&gt;&amp;nbsp;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;title "Log plot, with reflines at x=3 and y=2";&lt;BR /&gt;proc sgplot data=foo;&lt;BR /&gt;scatter x=x y=y;&lt;BR /&gt;xaxis values=(0.01, 1, 2, 3) type=log;&lt;BR /&gt;yaxis values=(0.01, 1, 2, 3) type=log;&lt;BR /&gt;refline 3 / axis=x lineattrs=(pattern=dot color=gray88);&lt;BR /&gt;refline 2 / axis=y lineattrs=(pattern=dot color=gray88);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="log_plot.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63313i21BAF0DEA3B6EDFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="log_plot.png" alt="log_plot.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 05 Sep 2021 13:41:35 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2021-09-05T13:41:35Z</dc:date>
    <item>
      <title>Reference line for log scale axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Reference-line-for-log-scale-axis/m-p/766102#M21934</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am generating graph using proc template. Customers want graph to be in log scale axis.&lt;/P&gt;
&lt;P&gt;So I am using the below line of code in proc template to generate a log scale in X axis and Y axis.&lt;/P&gt;
&lt;P&gt;xaxisopts=(label=("&amp;lt;xaxis label&amp;gt;.") type=log logopts=(base=10 tickintervalstyle=logexpand viewmin=0 viewmax=100 tickvalueformat=ratio.).&lt;/P&gt;
&lt;P&gt;Then I am formating log scale axis values to 0,1,2,3 as per requirement.&lt;/P&gt;
&lt;P&gt;The reference line is to be drawn at 3 for X axis and 2 for Y axis. this is possible in a normal scale graph using referenceline statement proc template.&lt;/P&gt;
&lt;P&gt;When I use log scale axis , how do I draw a reference line which is aligning to log scale. I am not very clear how reference line statement behave with log scale axis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please suggest.&lt;/P&gt;
&lt;P&gt;Please see the attachment.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Sep 2021 11:53:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Reference-line-for-log-scale-axis/m-p/766102#M21934</guid>
      <dc:creator>mnithinshetty</dc:creator>
      <dc:date>2021-09-05T11:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reference line for log scale axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Reference-line-for-log-scale-axis/m-p/766103#M21935</link>
      <description>&lt;P&gt;Many of us will not download Microsoft Office documents because they are a security threat. Please include whatever you are trying to show us directly in your reply, and not as an attachment.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Sep 2021 13:36:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Reference-line-for-log-scale-axis/m-p/766103#M21935</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-05T13:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reference line for log scale axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Reference-line-for-log-scale-axis/m-p/766111#M21937</link>
      <description>&lt;P&gt;Here's a screen capture of the graphs in the Word document:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="log_graph.png" style="width: 950px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63312i831162115AFC51B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="log_graph.png" alt="log_graph.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Sep 2021 13:26:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Reference-line-for-log-scale-axis/m-p/766111#M21937</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2021-09-05T13:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reference line for log scale axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Reference-line-for-log-scale-axis/m-p/766113#M21938</link>
      <description>&lt;P&gt;Is there any particular reason you're using a custom template? If not, I would recommend using the standard Proc SGplot. Here's an example (using random data, since I don't have your data):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data foo;&lt;BR /&gt;do loop = 1 to 200;&lt;BR /&gt;&amp;nbsp;x=ranuni(123)*3;&lt;BR /&gt;&amp;nbsp;y=ranuni(123)*3;&lt;BR /&gt;&amp;nbsp;output;&lt;BR /&gt;&amp;nbsp;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;title "Log plot, with reflines at x=3 and y=2";&lt;BR /&gt;proc sgplot data=foo;&lt;BR /&gt;scatter x=x y=y;&lt;BR /&gt;xaxis values=(0.01, 1, 2, 3) type=log;&lt;BR /&gt;yaxis values=(0.01, 1, 2, 3) type=log;&lt;BR /&gt;refline 3 / axis=x lineattrs=(pattern=dot color=gray88);&lt;BR /&gt;refline 2 / axis=y lineattrs=(pattern=dot color=gray88);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="log_plot.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63313i21BAF0DEA3B6EDFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="log_plot.png" alt="log_plot.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Sep 2021 13:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Reference-line-for-log-scale-axis/m-p/766113#M21938</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2021-09-05T13:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reference line for log scale axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Reference-line-for-log-scale-axis/m-p/766416#M21942</link>
      <description>&lt;P&gt;The values specified on the REFLINE statement are treated as LINEAR values, not LOG values. If your goal to put a reference line at LOG(3), then you will need to calculate the value of LOG(3) and use that value on the reference line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 15:31:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Reference-line-for-log-scale-axis/m-p/766416#M21942</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2021-09-07T15:31:06Z</dc:date>
    </item>
  </channel>
</rss>

