View source: R/tsqca_config_chart.R
| generate_config_chart | R Documentation |
Creates a Markdown-formatted configuration chart (Fiss-style table) from QCA minimization results. Supports single solution with multiple paths, and multiple solutions (displayed as separate tables).
generate_config_chart(
sol,
symbol_set = c("unicode", "ascii", "latex"),
include_metrics = TRUE,
language = c("en", "ja"),
condition_order = NULL
)
sol |
A solution object returned by |
symbol_set |
Character. One of |
include_metrics |
Logical. Whether to include consistency/coverage metrics in the table. Default is TRUE. |
language |
Character. |
condition_order |
Character vector. Optional ordering of conditions in the table rows. If NULL, conditions are ordered as they appear in paths. |
Character string containing Markdown-formatted table(s).
## Not run:
# After running QCA::minimize()
library(QCA)
tt <- truthTable(data, outcome = "Y", conditions = c("A", "B", "C"))
sol <- minimize(tt, include = "?", details = TRUE)
# Generate configuration chart
chart <- generate_config_chart(sol)
cat(chart)
# For LaTeX/PDF output (e.g., rticles)
chart <- generate_config_chart(sol, symbol_set = "latex")
# ASCII for maximum compatibility
chart <- generate_config_chart(sol, symbol_set = "ascii")
# Japanese labels
chart <- generate_config_chart(sol, language = "ja")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.