Skip to contents

Controls which groups' mean markers and CI boxes appear in the plot. This is independent of edge rendering — use qe_edges() to select whose network to draw.

Usage

qe_group(p, ..., by = NULL, intervals = TRUE)

Arguments

p

A qe_plot object.

...

Group names to show means for. Supply one or more strings, each matching a value in the model's group column. Omit entirely to show means for all groups in the model (the default).

by

The metadata column used for grouping (e.g. "Condition"). Optional — used to validate against the column baked into the model at extraction time. An error is raised if the column name does not match.

intervals

Logical. Show 95% CI box(es) around group mean(s). Default TRUE.

Value

The modified qe_plot object.

Examples

if (FALSE) { # \dontrun{
# Show means for all groups (default)
qe_plot(set) |> qe_group()

# Show means for specific groups only
qe_plot(set) |> qe_group("FirstGame", "SecondGame")

# Explicit column name — validates against model
qe_plot(set) |> qe_group("FirstGame", by = "Condition")
} # }