Re: [R] problem with log axis

2007-11-01 Thread Ben Bolker
Ben Bolker wrote: > > plot(x,y,log="x") > abline(r1) > abline(r1,untf=TRUE,col=2) > abline(r1,untf=FALSE,col=3) ## ?? > lines(x,predict(r1),col=4) > > On second thought, I don't think this is a bug. What "untf" is supposed to do is to transform what would be a line in the original (untra

Re: [R] problem with log axis

2007-11-01 Thread Ben Bolker
R Heberto Ghezzo, Dr wrote: > > Hello, > if I do: > x <- c(0.5,1,3,6,10,20,40) > y <- 10-log(x)+rnorm(7,0,0.05) > r1 <- lm(y ~ log(x)) > plot(log(x),y) > abline(r1) > # > I get a nice plot with the regression line almost over the points. > but: > plot(x,y,log="x") > abline(r1) > g

Re: [R] problem with log axis

2007-11-01 Thread Zembower, Kevin
o much for furthering knowledge and this discussion... -Kevin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of R Heberto Ghezzo, Dr Sent: Thursday, November 01, 2007 1:40 PM To: r-help@r-project.org Subject: [R] problem with log axis Hello, if I do: x <

[R] problem with log axis

2007-11-01 Thread R Heberto Ghezzo, Dr
Hello, if I do: x <- c(0.5,1,3,6,10,20,40) y <- 10-log(x)+rnorm(7,0,0.05) r1 <- lm(y ~ log(x)) plot(log(x),y) abline(r1) # I get a nice plot with the regression line almost over the points. but: plot(x,y,log="x") abline(r1) gives me exactly the same plot for the points but the regress