Learn R Programming

ffaframework (version 0.1.0)

plot_bbmk_test: Plot Block‐Bootstrap Mann–Kendall Test Results

Description

Generates a histogram of bootstrapped Mann–Kendall S‐statistics with vertical lines indicating the observed S‐statistic and confidence bounds.

Usage

plot_bbmk_test(results, ...)

Value

ggplot; A plot containing:

  • A gray histogram of the distribution of bootstrapped S‐statistics.

  • A red vertical line at the lower and upper confidence bounds.

  • A black vertical line at the observed S‐statistic.

Arguments

results

List of BB‐MK test results generated by eda_bbmk_test().

...

Optional named arguments: 'title', 'xlabel', and 'ylabel'.

Examples

Run this code
data <- rnorm(n = 100, mean = 100, sd = 10)
results <- eda_bbmk_test(data, samples = 1000L)
plot_bbmk_test(results)

Run the code above in your browser using DataLab