| node | R Documentation |
Helper function that creates a list of arguments which specify a given node's position and its label in the diagram,
designed for use within the node_positions argument of diyPaths().
node(name, x = 0, y = 0, label = NULL)
name |
The name of the variable within the |
x |
Numeric value for the x-coordinate of the node's centre. Default is |
y |
Numeric value for the y-coordinate of the node's centre. Default is |
label |
Custom label to display instead of |
A list containing arguments that specify a node's position and label, for use within the node_positions argument of diyPaths().
path() to specify the paths between nodes;
diyPaths() to render the diagram; template() to generate a starting node_positions list.
#a list that specifies a node positioned on x = 1, y = 2,
#and relabelled from its `lavaan` model name.
node(name = "bpm", x = 1, y = 2, label = "Beats per Minute")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.