<?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: Axis in scatterplot: reflect untransformed values but plot log-transformed values in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Axis-in-scatterplot-reflect-untransformed-values-but-plot-log/m-p/564978#M18284</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this with scatter statement instead of series, and removes "markers" option. It worked. Thank you so much!&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2019 17:45:02 GMT</pubDate>
    <dc:creator>Dinurik</dc:creator>
    <dc:date>2019-06-10T17:45:02Z</dc:date>
    <item>
      <title>Axis in scatterplot: reflect untransformed values but plot log-transformed values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Axis-in-scatterplot-reflect-untransformed-values-but-plot-log/m-p/563348#M18270</link>
      <description>&lt;P&gt;Could you please help me with this problem?&lt;BR /&gt;I am making a scatterplot between ln-transformed levels of testosterone and score on a certain scale. But I need the axis for testosterone to reflect its actual values before transformation. How can I do it?&lt;BR /&gt;&lt;BR /&gt;So far I have been using proc gplot, but as far as I understood from reading proc gplot syntax on support.sas.com I cannot do this in the axis statement. Here is my current code:&lt;BR /&gt;&lt;BR /&gt;symbol1 color=red value=dot height=2 interpol=rl ;&lt;BR /&gt;symbol2 color=blue value=square height=2 interpol = rl;&lt;BR /&gt;axis1 label=("Testosterone (ng/g)");&lt;BR /&gt;axis2 label=(a=90 "Raw Score") order = (0 to 150 by 20);&lt;/P&gt;&lt;P&gt;proc gplot data=model;&lt;BR /&gt;plot score*ln_testosterone=sex / haxis=axis1 vaxis=axis2;&lt;BR /&gt;run; quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would really appreciate any input!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 17:42:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Axis-in-scatterplot-reflect-untransformed-values-but-plot-log/m-p/563348#M18270</guid>
      <dc:creator>Dinurik</dc:creator>
      <dc:date>2019-06-03T17:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Axis in scatterplot: reflect untransformed values but plot log-transformed values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Axis-in-scatterplot-reflect-untransformed-values-but-plot-log/m-p/563547#M18271</link>
      <description>&lt;P&gt;I suspect you want to use LOGSTYLE=LOGEXPAND on the XAXIS statement, but maybe you want to use LOGSTYLE=LINEAR.&lt;/P&gt;
&lt;P&gt;Here is a program that shows both so you can choose.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA have;
call streaminit(1);
cnt = 0;
do i = -1 to 3 by 0.4;
   testosterone = 10**i;
   Sex = ifc( mod(cnt,2), 'F', 'M' );
   cnt + 1;
   Score = i + rand("Normal");
   output;
end;
run;

ods graphics / attrpriority=NONE;
proc sgplot data=Have;
series x=testosterone y=Score / group=Sex markers;
xaxis type=log logstyle=logexpand;
run;

proc sgplot data=Have;
series x=testosterone y=Score / group=Sex markers;
xaxis type=log logstyle=linear  label="Testosterone (ng/g)";
yaxis label="Raw Score";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here's a link to &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.2&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p07m2vpyq75fgan14m6g5pphnwlr.htm&amp;amp;locale=en#n06l9nkrgcfti0n1nl5dqsxtd0la" target="_self"&gt;the documentation for the XAXIS statement.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 15:17:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Axis-in-scatterplot-reflect-untransformed-values-but-plot-log/m-p/563547#M18271</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-06-04T15:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Axis in scatterplot: reflect untransformed values but plot log-transformed values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Axis-in-scatterplot-reflect-untransformed-values-but-plot-log/m-p/564978#M18284</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this with scatter statement instead of series, and removes "markers" option. It worked. Thank you so much!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 17:45:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Axis-in-scatterplot-reflect-untransformed-values-but-plot-log/m-p/564978#M18284</guid>
      <dc:creator>Dinurik</dc:creator>
      <dc:date>2019-06-10T17:45:02Z</dc:date>
    </item>
  </channel>
</rss>

