layer_bootstrap_density: Create bootstrap density layer

View source: R/plot-layers.R

layer_bootstrap_densityR Documentation

Create bootstrap density layer

Description

Creates a ggplot2 layer showing ridge density plots of bootstrap distributions with confidence interval shading.

Usage

layer_bootstrap_density(data_view, config)

Arguments

data_view

A besthr_data_view object

config

A besthr_plot_config object

Value

A list of ggplot2 layers

Examples


d <- make_data()
hr <- estimate(d, score, group)
dv <- besthr_data_view(hr)
cfg <- besthr_plot_config()
# layer_bootstrap_density returns layers to add to a ggplot



besthr documentation built on March 18, 2026, 5:08 p.m.