Code and data: Forest tree fecundity declines as climate shifts
Abstract
OverviewThis repository contains data and R code supporting the manuscript “Forest tree fecundity declines as climate shifts.”To run Please note that Environmental data were sourced externally (WorldClim v2.1; see ” Environmental data (WorldClim)” below). External validation data were sourced from MASTREE+ v.2; see "MASTREE+" below. These datasets are necessary to run the code. To replicate the findings, please run Script 01_data-wrangling.Rmd and 02_temporal-attribution.Rmd in order. These scripts reference the other supplied R helper functions. For an overview of the helper functions, see below, under "Code".ContentCodeScript nameDescription01_data-wrangling.RmdPre-analysis data wranging02_temporal-attribution.RmdMain analysis scriptfunctions_temporal-attributionHelper for 02_temporal-allocation with attribution analysisfunctions_plotting-process-and-temporal-slopesHelper for 02_temporal-allocation with plotting preparationsbootstrap_ci_interaction-plots_fixedcovarHelper for 02_temporal-allocation with bootstrap codeDataHarvestDataDescriptiondf_seeds.csv, Meta_Harvest_Poland.xlsxHarvest dataset (polish_decade R object), meta-data for harvest datasetg_inspectorateNADL (site) boundaries shapefileEnvironmental data (WorldClim)WorldClim is an open-access climate dataset. Please see below table for an overview of the files referenced in the analysis. Files are organised by climate variable in separate folders ("Directories"). Each file contains monthly data, and therefore the temporal range of files is given (earliest - latest). The downloading page is provided under Source.DirectoryFilesSourceTmax_1960-2021wc2.1_2.5m_tmax_1960-01.tif - wc2.1_2.5m_tmax_2021-12.tifhttps://www.worldclim.org/data/monthlywth.htmlTmin_1960-2021wc2.1_2.5m_tmin_1960-01.tif - wc2.1_2.5m_tmin_2021-12.tifhttps://www.worldclim.org/data/monthlywth.htmlPrec_1960-2021wc2.1_2.5m_prec_1960-01.tif - wc2.1_2.5m_prec_2021-12.tifhttps://www.worldclim.org/data/monthlywth.htmlMASTREE+MASTREE+ is an open-access dataset of reproduction time-series. For this analysis, version 2 was used, which can be downloaded from GitHub: https://github.com/JJFoest/MASTREEplus/tree/main/Data/MASTREEplus_2024-06-26_V2.RData.
Publication details
- Journal / source
- Figshare
- Publication date
- 26 March 2026