[R] apply and plot

Luis Ridao Cruz Luisr at frs.fo
Thu Oct 13 15:50:54 CEST 2005


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

More information about the R-help mailing list