Learn R Programming

TSQCA (version 1.3.1)

generate_cross_threshold_chart: Generate cross-threshold configuration chart from sweep results

Description

Creates a configuration chart from threshold sweep results. Supports two levels of aggregation: solution-term level (Fiss-style, default) and threshold-level summary.

Usage

generate_cross_threshold_chart(
  result,
  conditions = NULL,
  symbol_set = c("unicode", "ascii", "latex"),
  chart_level = c("term", "summary"),
  language = c("en", "ja")
)

Value

Character string containing Markdown-formatted table.

Arguments

result

A result object from any Sweep function (otSweep, ctSweepS, ctSweepM, or dtSweep).

conditions

Character vector. Condition names for row ordering. If NULL, automatically extracted from expressions.

symbol_set

Character. One of "unicode", "ascii", or "latex". Default is "unicode".

chart_level

Character. Chart aggregation level: "term" (default) produces solution-term level charts following Fiss (2011) notation, where each column represents one prime implicant. "summary" produces threshold-level summaries where each column represents one threshold, aggregating all configurations.

language

Character. "en" for English, "ja" for Japanese.

Examples

Run this code
if (FALSE) {
data(sample_data)
result <- otSweep(
  dat = sample_data,
  outcome = "Y",
  conditions = c("X1", "X2", "X3"),
  sweep_range = 6:8,
  thrX = c(X1 = 7, X2 = 7, X3 = 7)
)

# Solution-term level, Fiss-style (default)
chart <- generate_cross_threshold_chart(result, c("X1", "X2", "X3"))
cat(chart)

# Threshold-level summary
chart <- generate_cross_threshold_chart(result, c("X1", "X2", "X3"),
                                         chart_level = "summary")
cat(chart)
}

Run the code above in your browser using DataLab