[R] Plot of multiple data sets
Henrik Andersson
h.andersson at nioo.knaw.nl
Wed Sep 7 15:39:14 CEST 2005
Have a look at ?matplot
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
> plot,new()
> plot(MATRIX[,1])
> plot(MATRIX[,2])
> ...
>
> but it replaces the previous plot each time.
>
>
> Thank you very much if you can help !
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
--
---------------------------------------------
Henrik Andersson
Netherlands Institute of Ecology -
Centre for Estuarine and Marine Ecology
P.O. Box 140
4400 AC Yerseke
Phone: +31 113 577473
h.andersson at nioo.knaw.nl
http://www.nioo.knaw.nl/ppages/handersson
More information about the R-help
mailing list