[R] Reading in and manipulating multiple data sets from the same input file

2011-03-04 Thread mattnixon
Hi, I am attempting to write code which will read in my data which is of this form: X1Y1X2 Y2 XnYn 0 0 0 00 0 1 0 1 255 1 0 2 255

Re: [R] Average of several line plots

2011-02-03 Thread mattnixon
Yes - that is exactly what was needed. Applying approx to each data set then allowed for straight forward averaging afterwards. Many thanks. -- View this message in context: http://r.789695.n4.nabble.com/Average-of-several-line-plots-tp3254850p3258494.html Sent from the R help mailing list arc

Re: [R] Average of several line plots

2011-02-03 Thread mattnixon
Hi, Peter: thank you, I have taken a look at ?approxfun but I'm not sure it does what I'm after. Eduardo: The data doesn't represent functions. Basically the X values represent the distance across a sample and the Y values are a measure of the colour intensity at that point across the sample (i

[R] Average of several line plots

2011-02-02 Thread mattnixon
Hi, I have several data sets which are all approximately within the same values as each other (both X and Y) and all of these data sets more or less overlap each other when plotted on the same graph. However, although each data set varies between approximately the same range, there are vastly dif