[R] Average of several line plots
Peter Ehlers
ehlers at ucalgary.ca
Wed Feb 2 20:05:36 CET 2011
On 2011-02-02 08:44, mattnixon wrote:
>
> 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 different
> numbers of data points within each data set (due to the nature of how these
> values had to be measured).
>
> Currently, I am trying to figure out a way to produce a graph showing all
> these data sets and a line showing the average of all of the data sets.
> Given the different number of data points, I can't think of an easy way to
> do this.
Have a look at ?approxfun
Peter Ehlers
>
> Can anybody help?
>
> Thanks!
More information about the R-help
mailing list