knitr::opts_chunk$set(echo = TRUE)
female only model
survival (probability):
Sj: mean = 0.3, sd = 0.05 (min= 0, max= 0.9)
Sa: 0.7
(for the moment independent of patches area)
reproduction probability = 0.5
nestsize: poisson, lambda = 3
(for the moment independent of the patch area)
Ceiling model density dependence
maximum number of reproducing individuals per ha = 5
Table columns:
library(MetaLandSim) library(dplyr) set.seed(420) patches.tmp <- rland.graph(mapsize = 1000, dist_m = 200, areaM = 2.5, areaSD = 0.8, Npatch = 6, disp = 500, plotG = TRUE) patches <- patches.tmp$nodes.characteristics %>% select(ID, areas, x, y) patches$K <- round(patches$areas * 5, 0) write.csv2(patches, "patches.txt", eol = ",\n") saveRDS(patches, "pachtes.RDS")
migratie tussen patches in functie van de euclidische afstand: 1/Dist^2
distM <- dist(patches[,c("x","y")], diag = TRUE, upper = TRUE) probM <- as.matrix(distM) diag(probM) <- 100 # hoe groter hoe sneller een individu uit de huidige patch migreert probM <- 1 / (probM + 1) ^ 2 sumprob <- rowSums(probM, na.rm = TRUE) probM <- probM %*% diag(1/sumprob) write.csv2(probM, "markov_transition.txt", eol = ",\n")
(Eventueel later te verbeteren, diffusion approximation, (Cornell, 2003), toegepast in Ovaskainen & Hanski (2004)
Equal distribution of individuals over the patches. Adults only
init <- data.frame(patch = rep(seq(1:max(patches$ID)), times = 5), timestep = 1) init$ID <- rownames(init) write.csv2(init, "init_pop.txt", eol = ",\n") init
Table columns:
example:
ID | time | stage | patch ------|-------|-------|------ 3:1 | 1 | juv | 3 4:1 | 1 | juv | 4 3:2 | 1 | ad | 3 4:2 | 1 | ad | 4 3:1 | 2 | ad | 3 3:3 | 2 | ad | 3 3:4 | 2 | ad | 3 4:3 | 2 | juv | 4 3:5 | 2 | juv | 3 5:1 | 3 | juv | 5 3:3 | 3 | ad | 3 3:5 | 3 | juv | 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.