Generate a tidy_layout for a SEM graph by specifying node names, and empty strings or NA values for spaces.

get_layout(..., rows = NULL)

Arguments

...

Character arguments corresponding to layout elements. Use node names, empty strings (""), or NA values.

rows

Numeric, indicating the number of rows of the graph.

Value

Object of class 'tidy_layout'

See also

as.layout

Examples

get_layout("c", "", "d", "", "e", "", rows = 2)
#> y x name #> 1 2 1 c #> 2 1 2 e #> 3 2 3 d