This function visualizes the skip logic of a questionnaire based on the skip logic rules defined in a JSON file. It creates a directed graph showing the flow of questions and their skip patterns.

visualize_quex(path = NULL, file = NULL, responses = NULL)

Arguments

path

A character string specifying the path to the JSON file containing skip logic rules. Default is NULL.

file

A character string specifying the file name to save the graph visualization (.pdf, .svg, .png). Default is NULL.

responses

A dataframe from the output of get_inr and the 'responses' dataframe from the list output. Default is NULL.

Value

A graph object visualizing the skip logic of the questionnaire.

Examples

if (FALSE) { # \dontrun{
# Example usage:
visualize_quex(path = "path/to/your/skiplogic.json", file = "skip_logic_graph.png")
} # }