panel_title: Create a title for a diyPaths panel

View source: R/diyPaths.R

panel_titleR Documentation

Create a title for a diyPaths panel

Description

Helper function that creates a list of arguments which specify a custom title and its target panel, designed for use within the panel_titles argument of diyPaths(). Use the show_group_labels argument in diyPaths() to view each panel's number and which group it refers to.

Usage

panel_title(panel_num = 1, title = NULL)

Arguments

panel_num

Integer value for the panel number this title applies to. Default is 1.

title

The title text to display.

Value

A list containing arguments that specify a panel's number and title, for use within the panel_titles argument of diyPaths().

See Also

diyPaths(), where the list of titles is passed to panel_titles; panel_note() for adding notes to panels; template(), whose output includes a starting title list.

Examples

# titling a single, non-grouped model
panel_title(title = "My SEM Model")

# titling the second panel of a multi-group model
panel_title(panel_num = 2, title = "Female Participants")

diy.sem.plot documentation built on Nov. 11, 2026, 1:11 a.m.