[R] Odp: Plot and lm

2009-06-05 Thread Andrew Dolman
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

[R] Odp: Plot and lm

2009-06-05 Thread Petr PIKAL
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