3 Match pollen phenology with leafing phenology

Conceptual figure.

source("code/city_concept.R")
p_conceptual

3.1 Characterize leafing phenology for all taxa and cities

Set green-up/down thresholds for each taxa.

source("code/city_prep.R")

Read in green-up down day of year previously processed using the batchplanet package.

source("code/city_doy.R")

Convert into probability density.

source("code/city_freq.R")

3.2 Tune threshold and time lag with pollen data

source("code/city_data.R")
source("code/city_plot.R")
source("code/city_tune.R")

3.3 Results

Prepare for Shiny app by copying result figures to the current folder. Shiny app code is in ./shinyapp/app.R. Needs to deploy app once every time results are changed.

source("code/city_shiny.R")

Display results in a Shiny app.

knitr::include_app("https://yiluansong.shinyapps.io/RS4flower_result/", height = "600px")
source("code/city_plot_subset.R")
p_comp_1city

p_comp_1taxa

p_comp_1taxa2city

p_city_corr

Visualize matching results for all taxa in New York.

source("code/map_tidy.R")
source("code/map_plot.R")
p_doy_variation

p_plant_map_doy