Skip to contents

Combines observation and bootstrap panels using patchwork with proper alignment and shared legends.

Usage

compose_besthr_panels(panels, config)

Arguments

panels

A list of ggplot objects to compose

config

A besthr_plot_config object

Value

A patchwork object

Examples

d <- make_data()
hr <- estimate(d, score, group)
dv <- besthr_data_view(hr)
cfg <- besthr_plot_config()

p1 <- build_observation_panel(dv, cfg)
p2 <- build_bootstrap_panel(dv, cfg)
compose_besthr_panels(list(p1, p2), cfg)