changeset 88:b387ea636ff8 draft

Uploaded
author greg
date Wed, 22 Nov 2017 13:18:49 -0500
parents 522fe34a1dfc
children 1615e60cf61c
files insect_phenology_model.R
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/insect_phenology_model.R	Wed Nov 22 13:14:08 2017 -0500
+++ b/insect_phenology_model.R	Wed Nov 22 13:18:49 2017 -0500
@@ -576,7 +576,7 @@
 par(mar = c(5, 6, 4, 4), mfrow=c(3, 1))
 
 # Subfigure 1: population size by life stage
-title <- paste("opt$insect : Total pop. by life stage :", opt$location, ": Lat:", latitude, ":", start_date, "-", end_date, sep=" ")
+title <- paste(opt$insect, ": Total pop. by life stage :", opt$location, ": Lat:", latitude, ":", start_date, "-", 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="", cex=3, cex.lab=3, cex.axis=3, cex.main=3)
 # Young and old nymphs.
 lines(day.all, sn, lwd=2, lty=1, col=2)
@@ -600,7 +600,7 @@
 }
 
 # Subfigure 2: population size by generation
-title <- paste("opt$insect : Total pop. by generation :", opt$location, ": Lat:", latitude, ":", start_date, "-", end_date, sep=" ")
+title <- paste(opt$insect, ": Total pop. by generation :", opt$location, ": Lat:", latitude, ":", start_date, "-", end_date, sep=" ")
 plot(day.all, g0, main=title, type="l", ylim=c(0, max(g2)), axes=F, lwd=2, xlab="", ylab="", cex=3, cex.lab=3, cex.axis=3, cex.main=3)
 lines(day.all, g1, lwd = 2, lty = 1, col=2)
 lines(day.all, g2, lwd = 2, lty = 1, col=4)
@@ -622,7 +622,7 @@
 }
 
 # Subfigure 3: adult population size by generation
-title <- paste("opt$insect : Adult pop. by generation :", opt$location, ": Lat:", latitude, ":", start_date, "-", end_date, sep=" ")
+title <- paste(opt$insect, ": Adult pop. by generation :", opt$location, ": Lat:", latitude, ":", start_date, "-", end_date, sep=" ")
 plot(day.all, g0a, ylim=c(0, max(g2a) + 100), main=title, type="l", axes=F, lwd=2, xlab="", ylab="", cex=3, cex.lab=3, cex.axis=3, cex.main=3)
 lines(day.all, g1a, lwd = 2, lty = 1, col=2)
 lines(day.all, g2a, lwd = 2, lty = 1, col=4)