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,]  516  519  509  508  
> [3,]  559  573  556  566  
> [4,]  613  650  611  633  
> [5,]  676  714  667  716  
> [6,]  751  808  742  809 
> [7,]  816  890  823  879  
> 
> My matplot gives me 4 lines, but I would like to add a line with the
> averages of each year for all simulations. Can anyone help me with this?
> 
> Thanks in advance!
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Adding-average-into-a-matplot--tp16609064p16627267.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to