## Not run:
# library(embryogrowth)
# data(resultNest_4p)
# ti <- seq(from=0, to=(60*24*100), by=60)
# temp <- rnorm(length(ti), 29, 5)
# temp <- temp+ti/(60*24*100)/2
# layout(mat=c(1, 2))
# parpre <- par(mar=c(4, 4, 1, 1)+0.4)
# plot(ti/(60*24), temp, type="l", xlab="Days", ylab="Nest temperature", bty="n", las=1)
# out <- MovingIncubation(NestsResult=resultNest_4p,
# temperatures.df=data.frame(Time=ti, Temperature=temp))
# with(out, plot(Time/(60*24), Incubation.length.mean/(60*24), xlab="Days along the season",
# ylab="Incubation duration", type="l", bty="n", las=1, ylim=c(74, 78)))
# par(mar=parpre)
# layout(mat=c(1))
# ## End(Not run)
Run the code above in your browser using DataLab