nodes: Extract nodes from sem_graph

View source: R/plot-attributes.R

nodesR Documentation

Extract nodes from sem_graph

Description

Provides access to the nodes element of a sem_graph object. This can be used to return or assign to the nodes element.

Usage

nodes(x)

nodes(x) <- value

Arguments

x

Object of class sem_graph.

value

A valid value for nodes(x).

Value

data.frame

Examples

edg <- data.frame(from = "x", to = "y")
p <- prepare_graph(edges = edg, layout = get_layout("x", "y", rows = 1))
nodes(p)

cjvanlissa/tidySEM documentation built on March 16, 2024, 6:35 a.m.