A mix of Petr and William's answers will sort you out. You had two problems:
the base 10/e problem and the axes swapping problem.
?dput
I didn't know about that one either - very useful!
andydol...@gmail.com
2009/6/5 Petr PIKAL
Hi
>
> r-help-boun...@r-project.org napsal dne 04.06.2009 16:1
Hi
r-help-boun...@r-project.org napsal dne 04.06.2009 16:11:29:
> I want to make a log-log plot with a regression line, but I can't figure
> out what I'm doing wrong. What I'm trying is:
>
> plot(mass,area, log="xy", pch=as.numeric(food))
> abline(lm(mass~area))
abline(lm(area~mass))
>
> or
2 matches
Mail list logo