View source: R/Plotting_functions.R
plot_tr_comparison | R Documentation |
function to plot heatmap of changes in return period (Tr) over time for selected evetns
plot_tr_comparison(
tr_comparison,
station_metadata,
year_bounds = c(1900, 2019),
year_break = 1960
)
tr_comparison |
data frame with columns containing the absolute value of the drought features (x and y), the return period of reference (Tr_ref) and the return period of the study (Tr_new). Preferably the output of function 'get_comparison_tr()'. |
The function returns a ggplot element.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.