layer_group_means: Create group mean lines layer

View source: R/plot-layers.R

layer_group_meansR Documentation

Create group mean lines layer

Description

Creates a ggplot2 layer showing horizontal lines at group mean ranks.

Usage

layer_group_means(data_view, config)

Arguments

data_view

A besthr_data_view object

config

A besthr_plot_config object

Value

A ggplot2 layer

Examples


d <- make_data()
hr <- estimate(d, score, group)
dv <- besthr_data_view(hr)
cfg <- besthr_plot_config()
# layer_group_means returns a ggplot layer



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