Creates modern flowcharts using ggflowchart package with ggplot2 styling. This module provides an alternative flowchart approach using the ggflowchart package for creating publication-ready flowcharts with ggplot2 aesthetics. Complements the existing DiagrammeR-based flowchart module with modern ggplot2 integration and customizable styling options.
Usage
ggflowchart(
data,
from_var,
to_var,
group_var,
node_fill_palette = "clinical_blue",
plot_title = "Study Flowchart",
show_interpretation = TRUE
)
Arguments
- data
The data as a data frame.
- from_var
Variable defining the starting nodes for flowchart connections.
- to_var
Variable defining the ending nodes for flowchart connections.
- group_var
Optional variable for grouping nodes by categories.
- node_fill_palette
Color palette for node filling.
- plot_title
Title for the flowchart.
- show_interpretation
If TRUE, displays usage guidelines.