Skip to contents

Returns a pre-configured besthr_plot_config object with sensible defaults for common use cases. This is the easiest way to customize besthr plot appearance without understanding all the configuration options.

Usage

besthr_style(style = "default")

Arguments

style

Character string specifying the style preset:

  • "default" - Modern theme with colorblind-safe colors (recommended)

  • "classic" - Original besthr appearance for backward compatibility

  • "publication" - Clean style suitable for journal figures

  • "presentation" - Larger elements for slides

  • "density" - Uses gradient density instead of points for bootstrap

Value

A besthr_plot_config object

Examples

d <- make_data()
hr <- estimate(d, score, group)

# Quick styling with presets
plot(hr, config = besthr_style("publication"))
#> Confidence interval: 2.5% - 97.5%

plot(hr, config = besthr_style("presentation"))
#> Confidence interval: 2.5% - 97.5%

plot(hr, config = besthr_style("density"))
#> Confidence interval: 2.5% - 97.5%
#> Picking joint bandwidth of 0.453


# Same as default
plot(hr, config = besthr_style("default"))
#> Confidence interval: 2.5% - 97.5%