# HG changeset patch # User greg # Date 1520256447 18000 # Node ID dd86ee1851139ff14c589914a29768b2d3c694d6 # Parent 4aadc28100b0a4fbec6bf98de67d5fbc3cc13f1f Uploaded diff -r 4aadc28100b0 -r dd86ee185113 insect_phenology_model.R --- a/insect_phenology_model.R Mon Mar 05 08:27:17 2018 -0500 +++ b/insect_phenology_model.R Mon Mar 05 08:27:27 2018 -0500 @@ -246,7 +246,7 @@ if (life_stage=="Egg") { title = paste(insect, ": Reps", replications, ":", life_stage, "Pop :", location, ": Lat", latitude, ":", start_date, "-", end_date, sep=" "); legend_text = c(life_stage); - columns = c(4); + columns = c(4); } else if (life_stage=="Nymph") { stage = paste(life_stage_nymph, "Nymph Pop :", sep=" "); title = paste(insect, ": Reps", replications, ":", stage, location, ": Lat", latitude, ":", start_date, "-", end_date, sep=" "); @@ -916,7 +916,7 @@ end_date = temperature_data_frame$DATE[opt$num_days]; if (plot_generations_separately) { - for (life_stage in life_stages) {} + for (life_stage in life_stages) { if (life_stage == "Egg") { # Start PDF device driver. dev.new(width=20, height=30); @@ -971,6 +971,7 @@ # Turn off device driver to flush output. dev.off(); } + } } else { for (life_stage in life_stages) { if (life_stage == "Egg") {