Mercurial > repos > greg > insect_phenology_model
changeset 87:522fe34a1dfc draft
Uploaded
author | greg |
---|---|
date | Wed, 22 Nov 2017 13:14:08 -0500 |
parents | 5e1f9fde280c |
children | b387ea636ff8 |
files | insect_phenology_model.R |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/insect_phenology_model.R Wed Nov 22 13:14:01 2017 -0500 +++ b/insect_phenology_model.R Wed Nov 22 13:14:08 2017 -0500 @@ -18,7 +18,8 @@ make_option(c("-s", "--replications"), action="store", dest="replications", type="integer", help="Number of replications"), make_option(c("-t", "--se_plot"), action="store", dest="se_plot", help="Plot SE"), make_option(c("-v", "--input"), action="store", dest="input", help="Temperature data for selected location"), - make_option(c("-y", "--young_nymph_accum"), action="store", dest="young_nymph_accum", type="integer", help="Adjustment of DD accumulation (egg->young nymph)") + make_option(c("-y", "--young_nymph_accum"), action="store", dest="young_nymph_accum", type="integer", help="Adjustment of DD accumulation (egg->young nymph)"), + make_option(c("-x", "--insect"), action="store", dest="insect", help="Insect name") ) parser <- OptionParser(usage="%prog [options] file", option_list=option_list) @@ -575,7 +576,7 @@ par(mar = c(5, 6, 4, 4), mfrow=c(3, 1)) # Subfigure 1: population size by life stage -title <- paste("BSMB total population by life stage :", opt$location, ": Lat:", latitude, ":", start_date, "to", 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) @@ -599,7 +600,7 @@ } # Subfigure 2: population size by generation -title <- paste("BSMB total population by generation :", opt$location, ": Lat:", latitude, ":", start_date, "to", 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) @@ -621,7 +622,7 @@ } # Subfigure 3: adult population size by generation -title <- paste("BSMB adult population by generation :", opt$location, ": Lat:", latitude, ":", start_date, "to", 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)