Re: [R] abline is not plotting

2013-10-07 Thread hans74
Hi, it works now! Thanks to you both. I thought abline with the lm inside uses the already plotted x- and y-axes automatically, as it does for a abline( h = ... ), for example. Applying the logarithm on the lm-data fixes the graph. Thank you, Hans -- View this message in context: http://r.7

Re: [R] abline is not plotting

2013-10-04 Thread S Ellison
> I have some data I want to plot together with a best-fit line. (see MWE > below) ... > Can someone help me with that? What am I doing wrong? Not logging the lm. Also, you've calculated lm() the wrong way round; you've regressed x on y. Try plot(log(d), xlab="log(x)", ylab="log(y)") abline(l

Re: [R] abline is not plotting

2013-10-04 Thread John Kane
2013 07:16:49 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] abline is not plotting > > Hello there, > > I have some data I want to plot together with a best-fit line. (see MWE > below) > The points from the first plot does appear as expected, but the abline > does

[R] abline is not plotting

2013-10-04 Thread hans74
Hello there, I have some data I want to plot together with a best-fit line. (see MWE below) The points from the first plot does appear as expected, but the abline does not appear, no matter what I change. I removed the log parameter before, but the abline is a very steep line around the origin. I