build_layout_cpp | R Documentation |
This function takes a list of parsed association rules and produces two data frames: one for the nodes and one for the edges of a coral plot. It acts as a wrapper that:
Constructs the coral layout.
Converts the resulting nodes and edges into R-compatible data frames.
build_layout_cpp(parsed, grid_size, lhs_sort = "confidence")
parsed |
A list as returned by 'parse_rules()', with components:
|
grid_size |
Integer; number of grid cells per layout side used to place corals on a near-square grid (e.g., 3 means a 3×3 canvas) |
lhs_sort |
Character; metric used to sort antecedent items within each
LHS path when building the layout. One of |
A List containing two DataFrames:
edges
: DataFrame with start and end coordinates, line width, and color for each edge.
nodes
: DataFrame with position, radius, ID, and item label for each node.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.