Re: [R] Adding average into a matplot?

2008-04-11 Thread -Halcyon-
Thanks all for your online help and emails. It works fine now! H -Halcyon- wrote: > > Hi all, > > > I have a matrix which is filled with simulation results for several years. > Example of an output (7 years, 4 simulations): > > [,1] [,2] [,3] [,4] > [1,] 500 500 500 500 > [2,

Re: [R] Adding average into a matplot?

2008-04-10 Thread Bill.Venables
819 4402 Home Phone: +61 7 3286 7700 mailto:[EMAIL PROTECTED] http://www.cmis.csiro.au/bill.venables/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of -Halcyon- Sent: Friday, 11 April 2008 1:06 AM To: r-help@r-project.org Subject: [R] Addin

Re: [R] Adding average into a matplot?

2008-04-10 Thread Mike Prager
-Halcyon- <[EMAIL PROTECTED]> wrote: > I have a matrix which is filled with simulation results for several years. > Example of an output (7 years, 4 simulations): > [...] > My matplot gives me 4 lines, but I would like to add a line with the > averages of each year for all simulations. Can an

[R] Adding average into a matplot?

2008-04-10 Thread -Halcyon-
Hi all, I have a matrix which is filled with simulation results for several years. Example of an output (7 years, 4 simulations): [,1] [,2] [,3] [,4] [1,] 500 500 500 500 [2,] 516 519 509 508 [3,] 559 573 556 566 [4,] 613 650 611 633 [5,] 676 714 667 716 [6,]