[R] apply and plot

From: Luis Ridao Cruz <Luisr_at_frs.fo>
Date: Thu 13 Oct 2005 - 23:50:54 EST


R-help,

I use the code below to plot some data by applying "apply" function. But I don't know how I can get the argument "type" or "col" on the "plot" function to distinguish the different lines in the graph:

apply ( my.data, 2, function ( x ) lines ( dimnames ( my.data ) [[1]] , x ) )

Thank you in advance



R-help@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 Received on Fri Oct 14 00:02:01 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:44 EST