This project has been accepted at Journal of Ecology
- There is increasing evidence that environmental change associated with urbanization can drive rapid adaptation. However, most studies of urban adaptation have focused on coarse urban vs. rural comparisons or sampled along a single urban-rural environmental gradient, thereby ignoring the role that within-city environmental heterogeneity might play in adaptation to urban environments.
- In this study, we examined fine-scale variation in the presence of HCN—a potent anti-herbivore defense—and its two underlying genes (Ac and Li) between park green spaces and surrounding suburban habitats for five city parks in the Greater Toronto Area.
- We show that fine-scale urbanization has driven the formation of micro-clines in HCN on a scale of < 2 km, though the presence and strength of micro-clines varied across parks. Interestingly, these micro-clines were driven by lower HCN frequencies inside park green spaces, and are therefore in the opposite direction to that predicted based on previously described patterns of HCN frequency change along urban-rural gradients.
- Synthesis: These results suggest larger scale, adaptive urban-rural clines occur across a complex matrix of environmental heterogeneity within cities that drives fine-scale adaptive microclines of varying strengths and directions.
To use the code in this repository to reproduce the manuscript's results, please follow the following steps:
git clone
this repository or download it as a zip folder- Open
Rstudio
, go tofile > Open project
and open theumc.Rproj
Rproject associated with this repository - Once open, type
renv::restore()
in the R console to download the packages required to perform the analyses. If renv doesn't work, manually download the packages listed at the top of scripts/main.R and use your current version of R. - Manuscript results can be reproducibly generated by running scripts/main.R, which will create the cleaned/processed dataframes, tables, figures, and key results.