Mercurial > repos > greg > insect_phenology_model
changeset 49:d03ba99e25b6 draft
Uploaded
author | greg |
---|---|
date | Mon, 13 Nov 2017 11:11:52 -0500 |
parents | 66712cdec7c0 |
children | 0579901169fb |
files | insect_phenology_model.R |
diffstat | 1 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/insect_phenology_model.R Mon Nov 13 11:05:42 2017 -0500 +++ b/insect_phenology_model.R Mon Nov 13 11:11:52 2017 -0500 @@ -588,12 +588,12 @@ # Subfigure 2: population size by life stage 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=3, cex.lab=2, cex.axis=2, cex.main=2) +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=3, cex.lab=3, cex.axis=3, cex.main=3) # Young and old nymphs. lines(day.all, sn, lwd=2, lty=1, col=2) # Eggs lines(day.all, se, lwd=2, lty=1, col=4) -axis(1, at = c(1:12) * 30 - 15, cex.axis=2, labels=c("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec")) +axis(1, at = c(1:12) * 30 - 15, cex.axis=3, labels=c("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec")) axis(2, cex.axis = 3) leg.text <- c("Egg", "Nymph", "Adult") legend("topleft", leg.text, lty=c(1, 1, 1), col=c(4, 2, 1), cex=3) @@ -612,13 +612,13 @@ # Subfigure 3: population size by generation 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=3, cex.lab=2, cex.axis=2, cex.main=2) +plot(day.all, g0, main=title, type="l", ylim=c(0, max(g2)), axes=F, lwd=2, xlab="", ylab="Number", 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) -axis(1, at = c(1:12) * 30 - 15, cex.axis = 2, labels = c("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec")) +axis(1, at = c(1:12) * 30 - 15, cex.axis = 3, labels = c("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec")) axis(2, cex.axis = 3) leg.text <- c("P", "F1", "F2") -legend("topleft", leg.text, lty = c(1, 1, 1), col =c(1, 2, 4), cex = 2) +legend("topleft", leg.text, lty = c(1, 1, 1), col =c(1, 2, 4), cex=3) if (opt$se_plot == 1) { # Add SE lines to plot # SE for adults @@ -634,13 +634,13 @@ # Subfigure 4: adult population size by generation 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=3, cex.lab=2, cex.axis=2, cex.main=2) +plot(day.all, g0a, ylim=c(0, max(g2a) + 100), main=title, type="l", axes=F, lwd=2, xlab="Year", ylab="Number", 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) -axis(1, at = c(1:12) * 30 - 15, cex.axis = 2, labels = c("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec")) -axis(2, cex.axis = 2) +axis(1, at = c(1:12) * 30 - 15, cex.axis = 3, labels = c("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec")) +axis(2, cex.axis = 3) leg.text <- c("P", "F1", "F2") -legend("topleft", leg.text, lty = c(1, 1, 1), col = c(1, 2, 4), cex = 2) +legend("topleft", leg.text, lty = c(1, 1, 1), col = c(1, 2, 4), cex=3) if (opt$se_plot == 1) { # Add SE lines to plot # SE for adults