plot a series of MHW tables as maps and histograms
generate_duration_plots.Rd
plot a series of MHW tables as maps and histograms
Usage
generate_duration_plots(
mhw_tables,
conn,
threshold = 365/2,
ensemble_list_string = NA,
pdf_file_name = NULL
)
Arguments
- mhw_tables
vector of character names of tables to plot
- conn
database connection to use with mhw functions
- threshold
numeric common value to use to constrain scale of all plots, see plot_rasters_squish_outliers, default 365/2
- pdf_file_name
optional character if set, will be used as a path to a pdf file
Examples
if (FALSE) { # \dontrun{
db_file = get_dbfile()
db <- mhw_connect(db_file)
mhw_tables <- c('arise10_decade_metrics','arise15_decade_metrics','ssp245_decade_metrics' )
generate_duration_plots(mhw_tables, conn= db, threshold = 150, pdf_file_name = 'duration_plots.pdf')
} # }