% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/defaults.R
\name{set_consort_defaults}
\alias{set_consort_defaults}
\alias{get_consort_defaults}
\alias{init_consort_defaults}
\alias{print.consort_defaults}
\title{Set consort diagram default options}
\usage{
set_consort_defaults(
  arrow_gp = NULL,
  txt_gp = NULL,
  box_gp = NULL,
  label_txt_gp = NULL,
  label_box_gp = NULL,
  arrow_length = NULL,
  arrow_type = NULL,
  pad_u = NULL,
  bullet = NULL,
  parse_markup = NULL
)

get_consort_defaults()

init_consort_defaults()

\method{print}{consort_defaults}(x, ...)
}
\arguments{
\item{arrow_gp}{A \code{\link[grid]{gpar}} object for the arrow line.}

\item{txt_gp}{A \code{\link[grid]{gpar}} object for the text inside boxes.}

\item{box_gp}{A \code{\link[grid]{gpar}} object for the box border and fill.}

\item{label_txt_gp}{A \code{\link[grid]{gpar}} object for the label text.}

\item{label_box_gp}{A \code{\link[grid]{gpar}} object for the label box.}

\item{arrow_length}{Numeric, length of the arrowhead in inches.}

\item{arrow_type}{Character, arrow type: \code{"closed"} or \code{"open"}.}

\item{pad_u}{Numeric, padding between nodes.}

\item{bullet}{Character, bullet character for side box items.}

\item{parse_markup}{Logical, whether to parse lightweight markup syntax
(\code{**bold**}, \code{*italic*}, \code{^{superscript}},
\code{_{subscript}}, \code{__underline__}) in node labels.
Default is \code{FALSE}.}

\item{x}{A \code{consort_defaults} object.}

\item{...}{Not used.}
}
\value{
Invisibly returns the previous defaults (a \code{consort_defaults} object).

A \code{consort_defaults} object containing all current default settings.
}
\description{
Modify the default graphical parameters and other settings for consort diagrams.
Any parameter set to \code{NULL} (the default) will remain unchanged.
}
\examples{
# Change text color and box fill
old <- set_consort_defaults(
  txt_gp = grid::gpar(col = "navy", cex = 0.9),
  box_gp = grid::gpar(fill = "#F0F0F0")
)

# View current defaults
get_consort_defaults()

# Restore previous defaults
set_consort_defaults(
  txt_gp = old$txt_gp,
  box_gp = old$box_gp
)
get_consort_defaults()
}
