Macaw.Frame.Transforms.Cluster (macaw_frame v0.1.0)

Copy Markdown View Source

The cluster step (spec/04 §7.2): the dendrogram of a hierarchy, its leaves at one depth, x and y per node, laid out by Macaw.Draw.Layout.Cluster in the plot (needs: [:frame]).

id and by (the parent, nil or "" for the root) stratify the rows; field is summed (nil as 0), else leaves are counted; size defaults to the plot. output: "nodes" answers one row per node in pre-order, the input's columns with depth, height, value, branch (the root's child it descends from, nil for the root) and the layout's positions; output: "links" one row per parent–child pair, source, target, both ends and the link's path, where the layout has links. A cycle, a second root or a parent that is no node is {"by", {:hierarchy, reason}}.

Summary

Functions

What the frame is called when a data layer's rows are laid out by this step (spec/11 §2.2).

Functions

phrase()

@spec phrase() :: String.t()

What the frame is called when a data layer's rows are laid out by this step (spec/11 §2.2).