changeset 39:e7bb2a00d30d draft

Uploaded
author greg
date Thu, 09 Nov 2017 14:00:02 -0500
parents b81d2443b1b8
children ece79df73287
files insect_phenology_model.R
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/insect_phenology_model.R	Thu Nov 09 13:53:09 2017 -0500
+++ b/insect_phenology_model.R	Thu Nov 09 14:00:02 2017 -0500
@@ -207,8 +207,6 @@
 latitude <- temperature_data[1, 1]
 
 cat("Number of days: ", opt$num_days, "\n")
-cat("Latitude: ", latitude, "\n")
-cat("Replications: ", opt$replications, "\n")
 
 # Initialize matrix for results from all replications.
 S0.rep <- S1.rep <- S2.rep <- S3.rep <- S4.rep <- S5.rep <- matrix(rep(0, opt$num_days * opt$replications), ncol = opt$replications)
@@ -588,7 +586,7 @@
 par(mar = c(5, 6, 4, 4), mfrow=c(3, 1))
 
 # Subfigure 2: population size by life stage
-title <- paste(opt$location, start_date, "to", end_date, "BSMB Total Population Size by Life Stage", sep=" ")
+title <- paste("BSMB Total Population Size by Life Stage:", opt$location, ", Latitude:", latitude, ", Temperature Dates:", start_date, "to", end_date, sep=" ")
 plot(day.all, sa, main=title, type="l", ylim=c(0, max(se + se.se, sn + sn.se, sa + sa.se)), axes=F, lwd=2, xlab="", ylab="Number", cex=2, cex.lab=2, cex.axis=2, cex.main=2)
 # Young and old nymphs.
 lines(day.all, sn, lwd=2, lty=1, col=2)
@@ -612,7 +610,7 @@
 }
 
 # Subfigure 3: population size by generation
-title <- paste(opt$location, start_date, "to", end_date, "BSMB Total Population Size by Generation", sep=" ")
+title <- paste("BSMB Total Population Size by Generation:", opt$location, Latitude:", latitude, Temperature Dates:", start_date, "to", end_date, sep=" ")
 plot(day.all, g0, main=title, type="l", ylim=c(0, max(g2)), axes=F, lwd=2, xlab="", ylab="Number", cex=2, cex.lab=2, cex.axis=2, cex.main=2)
 lines(day.all, g1, lwd = 2, lty = 1, col = 2)
 lines(day.all, g2, lwd = 2, lty = 1, col = 4)
@@ -634,7 +632,7 @@
 }
 
 # Subfigure 4: adult population size by generation
-title <- paste(opt$location, start_date, "to", end_date, "BSMB Adult Population Size by Generation", sep=" ")
+title <- paste("BSMB Adult Population Size by Generation:", opt$location, Latitude:", latitude, Temperature Dates:", start_date, "to", end_date, sep=" ")
 plot(day.all, g0a, ylim=c(0, max(g2a) + 100), main=title, type="l", axes=F, lwd=2, xlab="Year", ylab="Number", cex=2, cex.lab=2, cex.axis=2, cex.main=2)
 lines(day.all, g1a, lwd = 2, lty = 1, col = 2)
 lines(day.all, g2a, lwd = 2, lty = 1, col = 4)