# NOT RUN {
library(phenology)
# Example
t <- 1:1000
par <- c(D1_1=200, D2D1_1=100, D3D2_1=200,
A_1=-logit(0.02), B_1=-logit(0.05), C_1=-logit(0.07))
phenology:::plot.Tagloss(x=list(), t=t, fitted.parameters=par, model="1")
phenology:::plot.Tagloss(x=NULL, t=t, fitted.parameters=par, model="1",
scale=1000, decoration = TRUE)
par <- c(D1_2=200, D2D1_2=100, D3D2_2=200,
A_2=-logit(0.05), B_2=-logit(0.03), C_2=-logit(0.03))
phenology:::plot.Tagloss(x=list(), t=t, fitted.parameters=par, ylim=c(0, 1),
scale = 10, model="2")
par <- c(D1_L2=200, D2D1_L2=100, D3D2_L2=200,
A_L2=-logit(0.05), B_L2=-logit(0.07), C_L2=-logit(0.07))
phenology:::plot.Tagloss(x=list(), t=t, fitted.parameters=par, model="L2")
par <- c(D1_R2=200, D2D1_R2=0, D3D2_R2=700,
A_R2=-logit(0.02), B_R2=-logit(0.05), C_R2=-logit(0.07))
phenology:::plot.Tagloss(x=list(), t=t, fitted.parameters=par, model="R2",
col="red", add=TRUE)
par <- c(D1_L1=200, D2D1_L1=2000, D3D2_L1=2000,
A_L1=-logit(0.05), B_L1=-logit(0.02), C_L1=-logit(0.1))
phenology:::plot.Tagloss(x=list(), t=t, fitted.parameters=par, model="L1")
# To plot the history of individuals
par <- c(D1_1=200, D2D1_1=100, D3D2_1=200,
A_1=-logit(5E-4), B_1=-logit(4E-4), C_1=-logit(5E-4),
D1_2=200, D2D1_2=100, D3D2_2=200,
A_2=-logit(6E-4), B_2=-logit(5E-4), C_2=-logit(6E-4))
phenology:::plot.Tagloss(x=list(), t=1:1000, fitted.parameters=par, model="Cumul",
decoration = TRUE)
phenology:::plot.Tagloss(x=list(), t=1:1000, fitted.parameters=par, model="Cumul",
decoration = TRUE, col=c("red", "green", "blue"))
# To plot the history of individuals
par <- c(D1_R1=200, D2D1_R1=100, D3D2_R1=200,
A_R1=-logit(5E-4), B_R1=-logit(4E-4), C_R1=-logit(5E-4),
D1_R2=200, D2D1_R2=100, D3D2_R2=200,
A_R2=-logit(6E-4), B_R2=-logit(5E-4), C_R2=-logit(6E-4),
D1_L1=200, D2D1_L1=100, D3D2_L1=200,
A_L1=-logit(5E-4), B_L1=-logit(4E-4), C_L1=-logit(5E-4),
D1_L2=200, D2D1_L2=100, D3D2_L2=200,
A_L2=-logit(6E-4), B_L2=-logit(5E-4), C_L2=-logit(6E-4))
phenology:::plot.Tagloss(x=list(), t=1:1000, fitted.parameters=par, model="Cumul",
decoration = TRUE)
# }
Run the code above in your browser using DataLab