Model_stability_density: Test the model stability: 1. density plot

Description Usage Arguments Value Source

View source: R/stability_test.R

Description

We plot the density distribution of the different leadtimes using ggplot.

Usage

1
2
3
4
5
6
7
Model_stability_density(
  ensemble,
  var_name = "tprate",
  ld_name = "leadtime",
  lab = var_name,
  fontsize = 11
)

Arguments

ensemble

The UNSEEN ensemble. This function expects an dataframe with the columns variable (precipitation) and leadtime.

var_name

The column name containing the variable to be analyzed. Defaults to "tprate".

ld_name

The column name containing the leadtimes. Defaults to "leadtime".

lab

The x-label. Defaults to the variable name (var_name).

fontsize

The font size. Defaults to 11.

Value

a plot showing the empirical probability density distribution for each leadtime

Source

Evaluation explained in more detail in Kelder et al. 2020

Colorblind friendly palette http://www.cookbook-r.com/Graphs/Colors_(ggplot2)/#a-colorblind-friendly-palette


timokelder/UNSEEN documentation built on June 1, 2021, 2:30 a.m.