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,]

[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,]

Re: [R] how to go to a line in R

2008-01-15 Thread -Halcyon-
RWinEdt has line indication. You might want to try that. Uwe Ligges-3 wrote: > > This depends on the editor you use for writing R code rather than on R. > > Uwe Ligges > > Jack Luo wrote: >> Hi, List >> >> When I was writing R code, I notice that there is no number indicating >> how >> many

[R] Population model question

2008-01-15 Thread -Halcyon-
Hi all, I have a population in which I want to follow living and dead animals through time ( 1 simulation, 100 years). I have created 2 arrays for living and dead animals In the starting population there are, say, 500, animals To determine whether each of these animals survives to a following ag

Re: [R] barplots and missing xlabels

2008-01-14 Thread -Halcyon-
Hi, I'd say just stretch the plot window. The code works fine and labels are all present Gz Jim Lemon-2 wrote: > > Geoff Russell wrote: >> Dear useRs, >> >> The following plots only print 2 of the 4 labels under the bars, is there >> a way please to force all 4 labels to print? >> >> par(mf

[R] vector distribution

2007-12-22 Thread -Halcyon-
Hi everyone, say i have a population (stable) with different amounts of animals in every ageclass (80 of age 1, 60 of age 2, etc) in a vector. Can anybody tell me how i can add gender (male or female) to all ageclasses? I want a 1:1 ratio of males and females within the population (as a starting