R/tsqca_config_chart.R
generate_cross_threshold_chart.RdCreates a configuration chart from threshold sweep results. Supports two levels of aggregation: solution-term level (Fiss-style, default) and threshold-level summary.
A result object from any Sweep function (otSweep, ctSweepS, ctSweepM, or dtSweep).
Character vector. Condition names for row ordering. If NULL, automatically extracted from expressions.
Character. One of "unicode", "ascii",
or "latex". Default is "unicode".
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.
Character. "en" for English, "ja" for Japanese.
Character string containing Markdown-formatted table.
if (FALSE) { # \dontrun{
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)
} # }