Re: [R] please show me simple example how to plot "Distance-Weighted Least Squares" fitting

2010-12-07 Thread Sarah Goslee
It's impossible to give you really good advice without an example of your data, the R code you used and the error message. But here's a simple scatterplot example: fakedata <- data.frame(x=runif(15), y=runif(15)) plot(fakedata$x, fakedata$y) or since you mentioned a line: fakedata <- fakedata[o

Re: [R] please show me simple example how to plot

2010-12-07 Thread Greg Snow
rg [mailto:r-help-boun...@r- > project.org] On Behalf Of madr > Sent: Tuesday, December 07, 2010 10:37 AM > To: r-help@r-project.org > Subject: Re: [R] please show me simple example how to plot > > > Well, maybe I didn't write it clear. > I know how to create scatterpl

Re: [R] please show me simple example how to plot

2010-12-07 Thread Peter Ehlers
On 2010-12-07 09:37, madr wrote: Well, maybe I didn't write it clear. I know how to create scatterplot, and how to import data from csv file. But I do not know how to add this fitting that mentioned in sumbject to a plot. I do not know for what function name to look for in R. I played some time

[R] please show me simple example how to plot "Distance-Weighted Least Squares" fitting

2010-12-07 Thread madr
I got simple x,y pairs of data and simple scatterplot and just cannot figure how to do it , there are many examples but always there is error popping out please show me an example stripped with additional data just core of what I need to do to get this damn line -- View this message in context:

Re: [R] please show me simple example how to plot

2010-12-07 Thread madr
Well, maybe I didn't write it clear. I know how to create scatterplot, and how to import data from csv file. But I do not know how to add this fitting that mentioned in sumbject to a plot. I do not know for what function name to look for in R. I played some time with ls, and it didn't create a lin