Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Log Transformed X-Axis

Status
Not open for further replies.

runjmb

Technical User
Jan 30, 2009
1
US
I am using sgplot (and gplot) to plot a normal, non-transformed variable on the y-axis against a NATURAL LOG transformed variable on the x-axis. I want to plot the x-axis in the natural log scale with axis labels of 0.0001, 0.001, 0.01, etc.

I used the following sgplot code:


proc sgplot data=bw_un_16;
title "Predicted Birth Weight ";
yaxis label="Birth Weight (grams)" minor;
xaxis label="Log Cotinine" logbase=e logstyle=linear;
band x=cot_new lower=lower upper=upper /
fillattrs=GraphConfidence2 legendlabel="95% CI";
series x=cot_new y=bw / lineattrs=GraphPrediction
legendlabel="Predicted Fit";

run;

I tried to play with the data anno statement but that didn't seem to work.

I can get my data to plot on the log10 scale but not on the natural log scale.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top