besthr_style: Get a preset plot style

View source: R/themes.R

besthr_styleR Documentation

Get a preset plot style

Description

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"))
plot(hr, config = besthr_style("presentation"))
plot(hr, config = besthr_style("density"))

# Same as default
plot(hr, config = besthr_style("default"))


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