R script for analysis of monarch butterfly survival data and predator community data for August 2016, July 2017, and August 2017. Analyses were performed on R version 3.4.3 for the manuscript entitled: Myers AT, Bahlai CA, Landis DA. Habitat type influences Danaus plexippus (Lepidoptera: Nymphalidae) oviposition and egg survival on Asclepias syriaca (Gentianales: Apocynaceae). Environmental Entomology. For more information, contact myersan7@msu.edu