plot_tr_comparison: function to plot heatmap of changes in return period (Tr)...

View source: R/Plotting_functions.R

plot_tr_comparisonR Documentation

function to plot heatmap of changes in return period (Tr) over time for selected evetns

Description

function to plot heatmap of changes in return period (Tr) over time for selected evetns

Usage

plot_tr_comparison(
  tr_comparison,
  station_metadata,
  year_bounds = c(1900, 2019),
  year_break = 1960
)

Arguments

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()'.

Value

The function returns a ggplot element.


pedroalencar1/DroughtSDF documentation built on May 8, 2023, 6:58 p.m.