if (FALSE) {
library(embryogrowth)
data(resultNest_4p_SSM)
plot(resultNest_4p_SSM, xlim=c(0,70), ylimT=c(22, 32), ylimS=c(0,45), series=1,
SE=c(DHA=1.396525, DHH=4.101217, T12H=0.04330405, Rho25=1.00479),
GTRN.CI = "SE", replicate.CI = 100,
embryo.stages="Caretta caretta.SCL")
plot(resultNest_4p_SSM, xlim=c(0,70), ylimT=c(22, 32), ylimS=c(0,45), series=1,
GTRN.CI = "Hessian", replicate.CI = 100,
embryo.stages="Caretta caretta.SCL")
plot(resultNest_4p_SSM, xlim=c(0,70), ylimT=c(22, 32), ylimS=c(0,45), series=1,
resultmcmc = resultNest_mcmc_4p_SSM,
GTRN.CI = "MCMC", replicate.CI = 100,
embryo.stages="Caretta caretta.SCL")
# to plot all the nest at the same time, use
plot(resultNest_4p_SSM, xlim=c(0,70), ylimT=c(22, 32), ylimS=c(0,45),
series="all", show.fioritures=FALSE, add=TRUE,
embryo.stages="Caretta caretta.SCL")
# to use color different for series
plot(resultNest_4p_SSM, xlim=c(0,70), ylimT=c(22, 32), ylimS=c(0,45), add=TRUE,
series="all", show.fioritures=FALSE, col.S=c(rep("black", 5), rep("red", 6)),
embryo.stages="Caretta caretta.SCL")
# to plot all the temperature profiles
par(mar=c(4, 4, 1, 1))
plot(resultNest_4p_SSM$data[[1]][, 1]/60/24,
resultNest_4p_SSM$data[[1]][, 2], bty="n",
las=1, xlab="Days of incubation",
ylab=expression("Temperatures in "*degree*"C"),
type="l", xlim=c(0,70),ylim=c(20, 35))
for (i in 2:21) {
par(new=TRUE)
plot(resultNest_4p_SSM$data[[i]][, 1]/60/24,
resultNest_4p_SSM$data[[i]][, 2], bty="n",
las=1, xlab="", ylab="", type="l", xlim=c(0,70),
ylim=c(20, 35), axes = FALSE)
}
}
Run the code above in your browser using DataLab