I'm working with a scatterplot of data, using plot() with log="xy" to get

log-log axes. But I can't get the regression line to plot correctly. I use

abline(lm(log(Y)~log(X))) and ge a line that looks like the correct slope,

but the Y-intercept is messed up. I haven't changed the y-axis other than

to use the log-transformation. I can get the non-log regression line to

plot as a curve on the log-log axes by using abline(lm(Y~X),unt=T), but I

just want to plot the straight regression line of log(Y)~log(X).

[[alternative HTML version deleted]]

______________________________________________

[hidden email] mailing list

https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide!

http://www.R-project.org/posting-guide.html