Re: [R-sig-eco] looping and plotting a Lefkovitch/Leslie projection

2012-11-29 Thread Duncan Golicher
Hello Jeffrey. Page 54 has a simple little example with matplot to show the results. https://dl.dropbox.com/u/2703650/R/rforbeginners/Rforbeginners.pdf All the best, Diuncan ___ R-sig-ecology mailing list R-sig-ecology@r-project.org https://stat.ethz

Re: [R-sig-eco] looping and plotting a Lefkovitch/Leslie projection

2012-11-29 Thread marcelino.delacruz
Maybe you would be interested in the package Rramas It implements some of the tools in the Ramas Ecolab (c) software Cheers, Marcelino http://cran.r-project.org/web/packages/Rramas/Rramas.pdf Con fecha 29/11/2012, "Jeffrey Stratford" escribió: >These are great examples. Thanks so much guys!

Re: [R-sig-eco] looping and plotting a Lefkovitch/Leslie projection

2012-11-29 Thread Peter Solymos
Jeffrey, Check out also the popbio package. Cheers, Peter -- Péter Sólymos, Dept Biol Sci, Univ Alberta, T6G 2E9, Canada AB soly...@ualberta.ca, Ph 780.492.8534, http://psolymos.github.com Alberta Biodiversity Monitoring Institute, http://www.abmi.ca Boreal Avian Modelling Project, http://www.bore

Re: [R-sig-eco] looping and plotting a Lefkovitch/Leslie projection

2012-11-29 Thread Jeffrey Stratford
These are great examples. Thanks so much guys! On Thu, Nov 29, 2012 at 1:41 PM, Marc Taylor wrote: > Hello Jeffrey. > > I have done something similar for a course on "Modelling in Conservation > Biology". Here is a simple example of an age-based Leslie model with three > classes: > > L=matrix(

Re: [R-sig-eco] looping and plotting a Lefkovitch/Leslie projection

2012-11-29 Thread Marc Taylor
Hello Jeffrey. I have done something similar for a course on "Modelling in Conservation Biology". Here is a simple example of an age-based Leslie model with three classes: L=matrix(c(0.5, 0., 0, 1.0, 0, 0., 0.75, 0, 0), nrow=3, ncol=3) time=10 No=c(2,0,0) POP=c(No) Nt=No for (i in 1:time

Re: [R-sig-eco] looping and plotting a Lefkovitch/Leslie projection

2012-11-29 Thread Alan Haynes
Is this what you want? Your code #the data A <- c(0,0,100, 0.4,0,0, 0,0.7,0) #create a matrix from the data L <- matrix(A, nrow=3, byrow=T) #check out the matrix L #the starting population n_0 <- c(1000, 400, 100) #the next generation #n_1 <- L %*% n_0 #check it out #n_1 #run another generation #

[R-sig-eco] looping and plotting a Lefkovitch/Leslie projection

2012-11-29 Thread Jeffrey Stratford
Hi everyone, I have a two part population lab in my Ecology course. The first part was showing exponential and logistic growth. For the second section, I would like to introduce them to Leslie/Lefkovitch models. I'm able to multiply the matrix and the age classes step by step but I would like to h