Mercurial > repos > greg > insect_phenology_model
comparison insect_phenology_model.R @ 55:c24b519ad05e draft
Uploaded
author | greg |
---|---|
date | Mon, 13 Nov 2017 11:50:11 -0500 |
parents | 5115076f136c |
children | 2fd7b1f7153d |
comparison
equal
deleted
inserted
replaced
54:5115076f136c | 55:c24b519ad05e |
---|---|
586 | 586 |
587 par(mar = c(5, 6, 4, 4), mfrow=c(3, 1)) | 587 par(mar = c(5, 6, 4, 4), mfrow=c(3, 1)) |
588 | 588 |
589 # Subfigure 1: population size by life stage | 589 # Subfigure 1: population size by life stage |
590 title <- paste("BSMB total population by life stage :", opt$location, ": Lat:", latitude, ":", start_date, "to", end_date, sep=" ") | 590 title <- paste("BSMB total population by life stage :", opt$location, ": Lat:", latitude, ":", start_date, "to", end_date, sep=" ") |
591 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="total population", cex=3, cex.lab=3, cex.axis=3, cex.main=3) | 591 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) |
592 # Young and old nymphs. | 592 # Young and old nymphs. |
593 lines(day.all, sn, lwd=2, lty=1, col=2) | 593 lines(day.all, sn, lwd=2, lty=1, col=2) |
594 # Eggs | 594 # Eggs |
595 lines(day.all, se, lwd=2, lty=1, col=4) | 595 lines(day.all, se, lwd=2, lty=1, col=4) |
596 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")) | 596 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")) |
610 lines (day.all, se - se.se, col=4, lty=2) | 610 lines (day.all, se - se.se, col=4, lty=2) |
611 } | 611 } |
612 | 612 |
613 # Subfigure 2: population size by generation | 613 # Subfigure 2: population size by generation |
614 title <- paste("BSMB total population by generation :", opt$location, ": Lat:", latitude, ":", start_date, "to", end_date, sep=" ") | 614 title <- paste("BSMB total population by generation :", opt$location, ": Lat:", latitude, ":", start_date, "to", end_date, sep=" ") |
615 plot(day.all, g0, main=title, type="l", ylim=c(0, max(g2)), axes=F, lwd=2, xlab="", ylab="total population", cex=3, cex.lab=3, cex.axis=3, cex.main=3) | 615 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) |
616 lines(day.all, g1, lwd = 2, lty = 1, col = 2) | 616 lines(day.all, g1, lwd = 2, lty = 1, col = 2) |
617 lines(day.all, g2, lwd = 2, lty = 1, col = 4) | 617 lines(day.all, g2, lwd = 2, lty = 1, col = 4) |
618 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")) | 618 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")) |
619 axis(2, cex.axis=3) | 619 axis(2, cex.axis=3) |
620 leg.text <- c("P", "F1", "F2") | 620 leg.text <- c("P", "F1", "F2") |
632 lines (day.all, g2 - g2.se, col = 4, lty = 2) | 632 lines (day.all, g2 - g2.se, col = 4, lty = 2) |
633 } | 633 } |
634 | 634 |
635 # Subfigure 3: adult population size by generation | 635 # Subfigure 3: adult population size by generation |
636 title <- paste("BSMB adult population by generation :", opt$location, ": Lat:", latitude, ":", start_date, "to", end_date, sep=" ") | 636 title <- paste("BSMB adult population by generation :", opt$location, ": Lat:", latitude, ":", start_date, "to", end_date, sep=" ") |
637 plot(day.all, g0a, ylim=c(0, max(g2a) + 100), main=title, type="l", axes=F, lwd=2, xlab="", ylab="adult population", cex=3, cex.lab=3, cex.axis=3, cex.main=3) | 637 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) |
638 lines(day.all, g1a, lwd = 2, lty = 1, col = 2) | 638 lines(day.all, g1a, lwd = 2, lty = 1, col = 2) |
639 lines(day.all, g2a, lwd = 2, lty = 1, col = 4) | 639 lines(day.all, g2a, lwd = 2, lty = 1, col = 4) |
640 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")) | 640 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")) |
641 axis(2, cex.axis=3) | 641 axis(2, cex.axis=3) |
642 leg.text <- c("P", "F1", "F2") | 642 leg.text <- c("P", "F1", "F2") |