Re: [R] Plot and lm

2009-06-04 Thread William Dunlap
x))) # passes through points Bill Dunlap TIBCO Software Inc - Spotfire Division wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of stephen sefick > Sent: Thursday, June 04, 2009 10:04 AM > To:

Re: [R] Plot and lm

2009-06-04 Thread stephen sefick
I can't copy and paste your example right out of you email and into an R session. ?dput and then see if you can copy and paste it into an R session and make it work. That way it is easier for everyone and you have a better chance of getting helpful responses. HTH Stephen Sefick On Thu, Jun 4, 2

Re: [R] Plot and lm

2009-06-04 Thread Par Leijonhufvud
stephen sefick [2009.06.04] wrote: > Could you provide a reproducible example even with fake data would be > fine or dput() yours. Sorry, I don't understand what you mean. Im my post was the first 8 lines of my data, imported into R with islands <- read.table("islands.csv", sep=",", h=T) and th

Re: [R] Plot and lm

2009-06-04 Thread stephen sefick
Could you provide a reproducible example even with fake data would be fine or dput() yours. On Thu, Jun 4, 2009 at 10:11 AM, Par Leijonhufvud wrote: > 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="

[R] Plot and lm

2009-06-04 Thread Par Leijonhufvud
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)) or plot(mass,area, log="xy", pch=as.numeric(food)) islands$logmass <- log(mass) islands$logarea <- log(area