[R] Plot of multiple data sets
murdoch at stats.uwo.ca
Wed Sep 7 15:37:18 CEST 2005
On 9/7/2005 9:28 AM, Stéphane Mattei wrote:
> Hello !
> There is something quite simple I want to do with R but I found nowhere in the help how to do it.
> I just want to plot data which are in a matrix, every column being a data set and having the same
> x-axis (just an index).
> So for example if I have a 50 x 6 matrix I want 6 set of points on the same plot.
> I tried
> but it replaces the previous plot each time.
See ?matplot. For example,
matplot(1:10, cbind(rnorm(10),rnorm(10)), type='l')
More information about the R-help